[bugfix] saved query restore wouldn't pick the db (#2568)

This commit is contained in:
Maxime Beauchemin
2017-04-07 07:48:47 -07:00
committed by GitHub
parent ca08e7051e
commit 3ed45ab98c

View File

@@ -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,