Преглед изворни кода

HUE-8758 [connectors] Fix autocomplete issue when connectors are enabled

Johan Ahlen пре 5 година
родитељ
комит
c5bbb86374
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      desktop/core/src/desktop/js/catalog/catalogUtils.js

+ 3 - 1
desktop/core/src/desktop/js/catalog/catalogUtils.js

@@ -31,7 +31,9 @@ const fetchAndSave = (apiHelperFunction, attributeName, entry, apiOptions) => {
       ? apiHelper[apiHelperFunction].bind(apiHelper)
       : apiHelperFunction;
   return func({
-    sourceType: entry.dataCatalog.sourceType,
+    sourceType:
+      (entry.dataCatalog.connector && entry.dataCatalog.connector.type) ||
+      entry.dataCatalog.sourceType,
     compute: entry.compute,
     path: entry.path, // Set for DataCatalogEntry
     paths: entry.paths, // Set for MultiTableEntry