Ver Fonte

HUE-7738 [assist] Fix cache issue in the assist udf reference panel

Johan Ahlen há 5 anos atrás
pai
commit
61c10c148c

+ 1 - 1
desktop/core/src/desktop/js/sql/reference/sqlReferenceRepository.ts

@@ -114,7 +114,7 @@ export const getUdfCategories = async (
     mergedUdfPromises[promiseKey] = new Promise(async resolve => {
       const cachedCategories = await getCachedUdfCategories(connector, database);
       if (cachedCategories) {
-        return cachedCategories;
+        resolve(cachedCategories);
       }
       let categories: UdfCategory[] = [];
       if (UDF_REFS[connector.dialect]) {