Reset buttion action output context on each invocation of the action
This commit is contained in:
parent
ae7117f744
commit
d121aefbaa
|
@ -329,13 +329,13 @@ export const enrichButtonActions = (actions, context) => {
|
||||||
return actions
|
return actions
|
||||||
}
|
}
|
||||||
|
|
||||||
// Button context is built up as actions are executed.
|
|
||||||
// Inherit any previous button context which may have come from actions
|
|
||||||
// before a confirmable action since this breaks the chain.
|
|
||||||
let buttonContext = context.actions || []
|
|
||||||
|
|
||||||
const handlers = actions.map(def => handlerMap[def["##eventHandlerType"]])
|
const handlers = actions.map(def => handlerMap[def["##eventHandlerType"]])
|
||||||
return async eventContext => {
|
return async eventContext => {
|
||||||
|
// Button context is built up as actions are executed.
|
||||||
|
// Inherit any previous button context which may have come from actions
|
||||||
|
// before a confirmable action since this breaks the chain.
|
||||||
|
let buttonContext = context.actions || []
|
||||||
|
|
||||||
for (let i = 0; i < handlers.length; i++) {
|
for (let i = 0; i < handlers.length; i++) {
|
||||||
try {
|
try {
|
||||||
// Skip any non-existent action definitions
|
// Skip any non-existent action definitions
|
||||||
|
|
Loading…
Reference in New Issue