From a99d4200112d198faa02510cbd340d88534ee433 Mon Sep 17 00:00:00 2001 From: Alexander Onnikov Date: Tue, 3 Sep 2024 14:58:02 +0700 Subject: [PATCH] fix: pass actionPopup to action props (#6467) Signed-off-by: Alexander Onnikov --- plugins/view-resources/src/components/ActionHandler.svelte | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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)