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
1 changed files with 1 additions and 1 deletions

View File

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