Преглед на файлове

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

Johan Ahlen преди 5 години
родител
ревизия
61c10c148c
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      desktop/core/src/desktop/js/sql/reference/sqlReferenceRepository.ts

+ 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]) {