🐛 Strips out sections[n].filteredItems (#1361)

This commit is contained in:
Alicia Sykes
2024-02-27 19:39:26 +00:00
parent 5b2c0e970f
commit f5789a3a25
3 changed files with 6 additions and 1 deletions

View File

@@ -94,6 +94,7 @@ export default {
const raw = rawAppConfig;
const isEmptyObject = (obj) => (typeof obj === 'object' && Object.keys(obj).length === 0);
const isEmpty = (value) => (value === undefined || isEmptyObject(value));
// Delete empty values
Object.keys(raw).forEach(key => {
if (isEmpty(raw[key])) delete raw[key];