浏览代码

HUE-8546 [assist] Make sure the assist gets refreshed after multiple DDL statement executions

Johan Ahlen 7 年之前
父节点
当前提交
04448bb
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      desktop/core/src/desktop/static/desktop/js/assist/assistDbSource.js

+ 2 - 1
desktop/core/src/desktop/static/desktop/js/assist/assistDbSource.js

@@ -406,7 +406,8 @@ var AssistDbNamespace = (function () {
         } else if (details.entry.getSourceType() === self.sourceType) {
           var findAndReloadInside = function (entries) {
             return entries.some(function (entry) {
-              if (entry.catalogEntry === details.entry) {
+              if (entry.catalogEntry.path.join('.') === details.entry.path.join('.')) {
+                entry.catalogEntry = details.entry;
                 entry.loadEntries();
                 return true;
               }