Ensure the generate script button in schema diff populates diff query in query tool.
parent
03f18d5242
commit
6fab59a13c
|
|
@ -283,6 +283,12 @@ export default function QueryToolComponent({params, pgWindow, pgAdmin, selectedN
|
|||
eventBus.current.fireEvent(QUERY_TOOL_EVENTS.HANDLE_API_ERROR, err);
|
||||
setQtStatePartial({ editor_disabled: true });
|
||||
});
|
||||
} else if (qtState.params.sql_id) {
|
||||
let sqlValue = localStorage.getItem(qtState.params.sql_id);
|
||||
localStorage.removeItem(qtState.params.sql_id);
|
||||
if (sqlValue) {
|
||||
eventBus.current.fireEvent(QUERY_TOOL_EVENTS.EDITOR_SET_SQL, sqlValue);
|
||||
}
|
||||
} else if (qtState.params.toolDataId) {
|
||||
populateEditorData();
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue