Fix for query tool prompting for unsaved changes even if no changes have been made. #5756

This commit is contained in:
Pravesh Sharma
2023-02-14 11:04:30 +05:30
committed by GitHub
parent f623d563b1
commit 8388f1e7ba

View File

@@ -431,6 +431,7 @@ export default function QueryToolComponent({params, pgWindow, pgAdmin, selectedN
setPanelTitle(panel, fileName, {...qtState, current_file: fileName});
}
eventBus.current.fireEvent(QUERY_TOOL_EVENTS.EDITOR_LAST_FOCUS);
eventBus.current.fireEvent(QUERY_TOOL_EVENTS.QUERY_CHANGED, isDirtyRef.current);
};
const events = [
[QUERY_TOOL_EVENTS.TRIGGER_LOAD_FILE, ()=>{