superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ville...@apache.org
Subject [incubator-superset] branch master updated: Fix createDatasource (#7955)
Date Thu, 01 Aug 2019 08:02:10 GMT
This is an automated email from the ASF dual-hosted git repository.

villebro pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/master by this push:
     new a09f258  Fix createDatasource (#7955)
a09f258 is described below

commit a09f2583790723cd9cf6e01cd23154ace49e21ab
Author: Beto Dealmeida <roberto@dealmeida.net>
AuthorDate: Thu Aug 1 01:01:46 2019 -0700

    Fix createDatasource (#7955)
---
 superset/assets/src/SqlLab/actions/sqlLab.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/superset/assets/src/SqlLab/actions/sqlLab.js b/superset/assets/src/SqlLab/actions/sqlLab.js
index 94f11cc..d7b15c5 100644
--- a/superset/assets/src/SqlLab/actions/sqlLab.js
+++ b/superset/assets/src/SqlLab/actions/sqlLab.js
@@ -530,10 +530,10 @@ export function createDatasource(vizOptions) {
       endpoint: '/superset/sqllab_viz/',
       postPayload: { data: vizOptions },
     })
-      .then(({ data }) => {
-        dispatch(createDatasourceSuccess(data));
+      .then(({ json }) => {
+        dispatch(createDatasourceSuccess(json));
 
-        return Promise.resolve(data);
+        return Promise.resolve(json);
       })
       .catch(() => {
         dispatch(createDatasourceFailed(t('An error occurred while creating the data source')));


Mime
View raw message