Explorar o código

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

Johan Ahlen %!s(int64=5) %!d(string=hai) anos
pai
achega
c5bbb86374
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  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