Skip to content

Commit

Permalink
fix(state preset): use structured cloning when applying
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Aug 10, 2022
1 parent 203f7a9 commit 10b1b4b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ function applyPreset (id) {
if (id === DEFAULT_ID) {
resetState()
} else if (presetStates.value.has(id)) {
applyState(props.variant.state, clone(presetStates.value.get(id).state))
applyState(props.variant.state, clone(toRawDeep(presetStates.value.get(id).state)))
}
}
Expand Down

0 comments on commit 10b1b4b

Please sign in to comment.