mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed an issue where Query Tool/View Data panel closed event is not registered for changes.
It's a regression of #4231. refs #4231
This commit is contained in:
parent
f664b71565
commit
1dca4313f7
@ -487,7 +487,7 @@ define('tools.querytool', [
|
||||
});
|
||||
|
||||
var open_new_tab = self.browser_preferences.new_browser_tab_open;
|
||||
if (open_new_tab && open_new_tab.includes('qt')) {
|
||||
if (_.isNull(open_new_tab) || _.isUndefined(open_new_tab) || !open_new_tab.includes('qt')) {
|
||||
// Listen on the panel closed event and notify user to save modifications.
|
||||
_.each(pgWindow.default.pgAdmin.Browser.docker.findPanels('frm_datagrid'), function(p) {
|
||||
if (p.isVisible()) {
|
||||
|
Loading…
Reference in New Issue
Block a user