💚 Fixes CI

This commit is contained in:
Alicia Sykes
2021-10-26 23:18:55 +01:00
parent dde5b36abc
commit 016dfb17c4
3 changed files with 1 additions and 3 deletions

View File

@@ -86,7 +86,7 @@ export default {
/* Remove any attribute which has an undefined value before saving */
removeUndefinedValues(rawAppConfig) {
const raw = rawAppConfig;
const isEmpty = (value) => (value === undefined || value === {} || value === []);
const isEmpty = (value) => (value === undefined);
Object.keys(raw).forEach(key => isEmpty(raw[key]) && delete raw[key]);
return raw;
},