fix kirby issue

This commit is contained in:
Henry Jameson 2026-07-14 16:50:22 +03:00
commit fc21e4424b

View file

@ -104,8 +104,8 @@ const StatusActionButtons = {
} }
}, },
doActionReal(button) { doActionReal(button) {
button const promise = button.action?.(this.funcArg) ?? Promise.resolve()
.action?.(this.funcArg) promise
.then(() => this.$emit('onSuccess')) .then(() => this.$emit('onSuccess'))
.catch((err) => this.$emit('onError', err)) .catch((err) => this.$emit('onError', err))
}, },