Переглянути джерело

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

Johan Ahlen 5 роки тому
батько
коміт
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]) {