浏览代码

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

Johan Ahlen 7 年之前
父节点
当前提交
8e04493
共有 1 个文件被更改,包括 2 次插入2 次删除
  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() });
           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' });
           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();
             dbPanel[0].panelData.init();
           }
           }