mirror of https://github.com/Lissy93/dashy.git
💚 Fixes CI
This commit is contained in:
parent
dde5b36abc
commit
016dfb17c4
|
@ -58,7 +58,6 @@ export default {
|
|||
div.radio-container {
|
||||
margin: 0.25rem auto;
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
|
|
|
@ -48,7 +48,6 @@ export default {
|
|||
div.select-container {
|
||||
margin: 0.25rem auto;
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
|
|
|
@ -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;
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue