mirror of
https://github.com/romancm/gamebrary
synced 2025-02-16 11:08:24 +00:00
only set toggleSwitch value if not undefined
This commit is contained in:
parent
bf514feeb7
commit
65759fa5b8
1 changed files with 3 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Reference in a new issue