Skip to content

Commit

Permalink
fix: fix adding multiple presets (#1636)
Browse files Browse the repository at this point in the history
  • Loading branch information
meteyou authored Nov 14, 2023
1 parent 3c0b537 commit 8f96faa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/store/gui/presets/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export const actions: ActionTree<GuiPresetsState, RootState> = {
store({ commit, dispatch, state }, payload) {
const id = uuidv4()

commit('store', { id, values: payload.values })
commit('store', { id, values: { ...payload.values } })
dispatch('upload', {
id,
value: state.presets[id],
Expand Down

0 comments on commit 8f96faa

Please sign in to comment.