소스 검색

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

Johan Ahlen 7 년 전
부모
커밋
8e04493dcb
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() });
 
-          // 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();
           }