1
0
Fork 0
mirror of synced 2024-10-05 20:44:47 +13: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), actions.slice(i + 1),
newContext newContext
) )
resolve(await next()) resolve(typeof next === "function" ? await next() : true)
} else { } else {
resolve(false) resolve(false)
} }