[connectors] Fix autocomplete issue when connectors are enabled
@@ -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
