We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6e9aaad commit d3e2cfdCopy full SHA for d3e2cfd
frontend/src/stores/app.ts
@@ -85,7 +85,7 @@ export const useAppStore = defineStore('app', () => {
85
) => {
86
if (!customActions.value[target]) throw new Error('Target does not exist: ' + target)
87
const _actions = Array.isArray(actions) ? actions : [actions]
88
- _actions.forEach((action) => (action.id = sampleID()))
+ _actions.forEach((action) => !action.id && (action.id = sampleID()))
89
customActions.value[target].push(..._actions)
90
const remove = () => {
91
customActions.value[target] = customActions.value[target].filter(
0 commit comments