Browse Source

[editor] Fix issue where autocomplete spins forever on column popularity in editor v2

Johan Ahlen 5 năm trước cách đây
mục cha
commit
ae4ae1f674
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  1. 1 2
      desktop/core/src/desktop/js/catalog/dataCatalog.ts

+ 1 - 2
desktop/core/src/desktop/js/catalog/dataCatalog.ts

@@ -399,7 +399,6 @@ export class DataCatalog {
           if (tableEntry.optimizerPopularityForChildrenPromise) {
             const existingPopularEntries = await tableEntry.optimizerPopularityForChildrenPromise;
             popularEntries.push(...existingPopularEntries);
-            resolve();
           } else if (tableEntry.definition && tableEntry.definition.optimizerLoaded) {
             const childPromise = tableEntry.getChildren({ ...options, silenceErrors: true });
             cancellablePromises.push(childPromise);
@@ -409,13 +408,13 @@ export class DataCatalog {
                 popularEntries.push(childEntry);
               }
             });
-            resolve();
           } else {
             pathsToLoad.push(path);
           }
         } catch (err) {
           reject(err);
         }
+        resolve();
       });
       existingPromises.push(existingPromise);
     });