mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-24 07:16:52 -06:00
Fix for query tool prompting for unsaved changes even if no changes have been made. #5756
This commit is contained in:
parent
f623d563b1
commit
8388f1e7ba
@ -431,6 +431,7 @@ export default function QueryToolComponent({params, pgWindow, pgAdmin, selectedN
|
|||||||
setPanelTitle(panel, fileName, {...qtState, current_file: fileName});
|
setPanelTitle(panel, fileName, {...qtState, current_file: fileName});
|
||||||
}
|
}
|
||||||
eventBus.current.fireEvent(QUERY_TOOL_EVENTS.EDITOR_LAST_FOCUS);
|
eventBus.current.fireEvent(QUERY_TOOL_EVENTS.EDITOR_LAST_FOCUS);
|
||||||
|
eventBus.current.fireEvent(QUERY_TOOL_EVENTS.QUERY_CHANGED, isDirtyRef.current);
|
||||||
};
|
};
|
||||||
const events = [
|
const events = [
|
||||||
[QUERY_TOOL_EVENTS.TRIGGER_LOAD_FILE, ()=>{
|
[QUERY_TOOL_EVENTS.TRIGGER_LOAD_FILE, ()=>{
|
||||||
|
Loading…
Reference in New Issue
Block a user