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 {
|
div.radio-container {
|
||||||
margin: 0.25rem auto;
|
margin: 0.25rem auto;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: baseline;
|
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
|
@ -48,7 +48,6 @@ export default {
|
||||||
div.select-container {
|
div.select-container {
|
||||||
margin: 0.25rem auto;
|
margin: 0.25rem auto;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: baseline;
|
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
|
@ -86,7 +86,7 @@ export default {
|
||||||
/* Remove any attribute which has an undefined value before saving */
|
/* Remove any attribute which has an undefined value before saving */
|
||||||
removeUndefinedValues(rawAppConfig) {
|
removeUndefinedValues(rawAppConfig) {
|
||||||
const raw = 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]);
|
Object.keys(raw).forEach(key => isEmpty(raw[key]) && delete raw[key]);
|
||||||
return raw;
|
return raw;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue