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