Explorar o código

HUE-7970 [assist] Open the last opened database in the assist for apps other than the editor

Johan Ahlen %!s(int64=7) %!d(string=hai) anos
pai
achega
8e04493dcb
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      desktop/core/src/desktop/templates/assist.mako

+ 2 - 2
desktop/core/src/desktop/templates/assist.mako

@@ -2047,9 +2047,9 @@ from desktop.views import _ko
 
           var lastFoundPanel = self.availablePanels().filter(function (panel) { return panel.type === self.lastOpenPanelType() });
 
-          // always forces the db panel to load if not the last open panel
+          // always forces the db panel to load
           var dbPanel = self.availablePanels().filter(function (panel) { return panel.type === 'sql' });
-          if (dbPanel.length > 0 && (lastFoundPanel.length === 0 || (lastFoundPanel[0] !== dbPanel[0]))) {
+          if (dbPanel.length > 0) {
             dbPanel[0].panelData.init();
           }