소스 검색

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