1
0
Fork 0
mirror of synced 2024-07-07 07:15:43 +12:00

Check presence of next fn before attempting to execute.

This commit is contained in:
Dean 2023-07-14 12:10:12 +01:00
parent c9f6c057c6
commit 7870f31316

View file

@ -478,7 +478,7 @@ export const enrichButtonActions = (actions, context) => {
actions.slice(i + 1),
newContext
)
resolve(await next())
resolve(typeof next === "function" ? await next() : true)
} else {
resolve(false)
}