diff --git a/plugins/view-resources/src/components/ActionHandler.svelte b/plugins/view-resources/src/components/ActionHandler.svelte index 5cf3f8acff..7a93ea8747 100644 --- a/plugins/view-resources/src/components/ActionHandler.svelte +++ b/plugins/view-resources/src/components/ActionHandler.svelte @@ -178,7 +178,10 @@ lastKey = undefined delayedAction = undefined Analytics.handleEvent(a._id) - const actionProps = { ...a.actionProps } + const actionProps: Record = { + ...a.actionProps, + ...(a.actionPopup !== undefined ? { actionPopup: a.actionPopup } : {}) + } if (!Object.prototype.hasOwnProperty.call(actionProps, 'props')) actionProps.props = {} actionProps.props.space = currentSpace await action(selectionDocs, evt, actionProps)