This is an automated email from the ASF dual-hosted git repository.

maximebeauchemin 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 5026401  VIZ-190 fix (#6958)
5026401 is described below

commit 50264011719b2508d1246d2b2ad3485053a697b4
Author: Kim Truong <[email protected]>
AuthorDate: Wed Feb 27 21:00:56 2019 -0800

    VIZ-190 fix (#6958)
---
 superset/assets/src/chart/chartAction.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/superset/assets/src/chart/chartAction.js 
b/superset/assets/src/chart/chartAction.js
index 2154759..93433c8 100644
--- a/superset/assets/src/chart/chartAction.js
+++ b/superset/assets/src/chart/chartAction.js
@@ -249,7 +249,10 @@ export function runQuery(formData, force = false, timeout 
= 60, key) {
 export function redirectSQLLab(formData) {
   return (dispatch) => {
     const { url } = getExploreUrlAndPayload({ formData, endpointType: 'query' 
});
-    return SupersetClient.get({ url })
+    return SupersetClient.post({
+      url,
+      postPayload: { form_data: formData },
+    })
       .then(({ json }) => {
         const redirectUrl = new URL(window.location);
         redirectUrl.pathname = '/superset/sqllab';

Reply via email to