From 1968a41fea2f9b75c7d8e83c123fe844a1849a30 Mon Sep 17 00:00:00 2001 From: Vera Liu Date: Mon, 21 Nov 2016 13:44:44 -0800 Subject: [PATCH] Fixed bug with querylink passing sql object instead of string --- .../SqlLab/components/QueryTable.jsx | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/superset/assets/javascripts/SqlLab/components/QueryTable.jsx b/superset/assets/javascripts/SqlLab/components/QueryTable.jsx index b4c04b9eb2b1..aa9aefd04e1b 100644 --- a/superset/assets/javascripts/SqlLab/components/QueryTable.jsx +++ b/superset/assets/javascripts/SqlLab/components/QueryTable.jsx @@ -91,6 +91,16 @@ class QueryTable extends React.PureComponent { ); q.started = moment(q.startDttm).format('HH:mm:ss'); + q.querylink = ( +
+ + Open in SQL Editor + +
+ ); q.sql = ( ); @@ -166,16 +176,6 @@ class QueryTable extends React.PureComponent { /> ); - q.querylink = ( -
- - Open in SQL Editor - -
- ); return q; }).reverse(); return (