소스 검색

[frontend] Validate if a cached MultiStoreEntry exists before trying to merge it

Johan Ahlen 5 년 전
부모
커밋
0029d4d26d
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      desktop/core/src/desktop/js/catalog/dataCatalog.ts

+ 3 - 1
desktop/core/src/desktop/js/catalog/dataCatalog.ts

@@ -773,7 +773,9 @@ export class DataCatalog {
       }
       try {
         const storeEntry = await this.multiTableStore.getItem<StoreMultiTableEntry>(identifier);
-        mergeMultiTableEntry(newEntry, storeEntry);
+        if (storeEntry) {
+          mergeMultiTableEntry(newEntry, storeEntry);
+        }
       } catch (err) {
         console.warn(err);
       }