Skip to content

Commit

Permalink
Fixed bug with querylink passing sql object instead of string
Browse files Browse the repository at this point in the history
  • Loading branch information
vera-liu committed Nov 21, 2016
1 parent bd6a439 commit 1968a41
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions superset/assets/javascripts/SqlLab/components/QueryTable.jsx
Expand Up @@ -91,6 +91,16 @@ class QueryTable extends React.PureComponent {
</button>
);
q.started = moment(q.startDttm).format('HH:mm:ss');
q.querylink = (
<div style={{ width: '100px' }}>
<a
href={this.getQueryLink(q.dbId, q.sql)}
className="btn btn-primary btn-xs"
>
<i className="fa fa-external-link" />Open in SQL Editor
</a>
</div>
);
q.sql = (
<HighlightedSql sql={q.sql} rawSql={q.executedSql} shrink maxWidth={60} />
);
Expand Down Expand Up @@ -166,16 +176,6 @@ class QueryTable extends React.PureComponent {
/>
</div>
);
q.querylink = (
<div style={{ width: '100px' }}>
<a
href={this.getQueryLink(q.dbId, q.sql)}
className="btn btn-primary btn-xs"
>
<i className="fa fa-external-link" />Open in SQL Editor
</a>
</div>
);
return q;
}).reverse();
return (
Expand Down

0 comments on commit 1968a41

Please sign in to comment.