Skip to content

Commit

Permalink
[bugfix] saved query restore wouldn't pick the db (#2568)
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch authored Apr 7, 2017
1 parent ca08e70 commit 3ed45ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/assets/javascripts/SqlLab/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ export function popSavedQuery(saveQueryId) {
const sq = data.result;
const queryEditorProps = {
title: sq.label,
dbId: sq.db_id,
dbId: sq.db_id ? parseInt(sq.db_id, 10) : null,
schema: sq.schema,
autorun: false,
sql: sq.sql,
Expand Down

0 comments on commit 3ed45ab

Please sign in to comment.