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

pull/5861/head
Pravesh Sharma 2023-02-14 11:04:30 +05:30 committed by GitHub
parent f623d563b1
commit 8388f1e7ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

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, ()=>{