New state options for sub-config

This commit is contained in:
Alicia Sykes
2024-04-08 20:37:33 +01:00
parent 31b40e60f6
commit a1bf7a6931
4 changed files with 14 additions and 40 deletions

View File

@@ -21,7 +21,7 @@ export default {
return;
}
// 1. Get the config, and strip appConfig if is sub-page
const isSubPag = !!this.$store.state.currentConfigInfo;
const isSubPag = !!this.$store.state.currentConfigInfo.confId;
const jsonConfig = config;
if (isSubPag) delete jsonConfig.appConfig;
jsonConfig.sections = jsonConfig.sections.map(({ filteredItems, ...section }) => section);