only set toggleSwitch value if not undefined

This commit is contained in:
Roman Cervantes 2019-07-11 12:53:23 -07:00
parent bf514feeb7
commit 65759fa5b8

View file

@ -39,7 +39,9 @@ export default {
},
mounted() {
this.localValue = JSON.parse(JSON.stringify(this.value));
if (this.value !== undefined) {
this.localValue = JSON.parse(JSON.stringify(this.value));
}
},
};
</script>