|
@@ -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];
|