Răsfoiți Sursa

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

Johan Ahlen 5 ani în urmă
părinte
comite
c5bbb86374
1 a modificat fișierele cu 3 adăugiri și 1 ștergeri
  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