bill il y a 3 semaines
Parent
commit
448aca43c2
1 fichiers modifiés avec 1 ajouts et 4 suppressions
  1. 1 4
      src/example/fuse/views/tabulation/gen-tab.ts

+ 1 - 4
src/example/fuse/views/tabulation/gen-tab.ts

@@ -320,7 +320,7 @@ export const repTabulationStore = async (
   const repData = await genTabulationData(paperKey, compass, cover);
   const layer = store?.layers && store?.layers[defaultLayer];
   
-  if (!layer) {
+  if (!layer || !store.config) {
     return {
       ...(store || {}),
       config: {
@@ -333,9 +333,6 @@ export const repTabulationStore = async (
       },
     };
   }
-  if (!store.config) {
-    store.config = {...getEmptyStoreData().config}
-  }
 
   if (repData.image?.length) {
     const imageData = repData.image[0];