fix: pass actionPopup to action props (#6467)

Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
Alexander Onnikov 2024-09-03 14:58:02 +07:00 committed by Andrey Sobolev
parent 9ec7a98978
commit 174d976311
No known key found for this signature in database
GPG Key ID: BD80F68D68D8F7F2

View File

@ -178,7 +178,10 @@
lastKey = undefined
delayedAction = undefined
Analytics.handleEvent(a._id)
const actionProps = { ...a.actionProps }
const actionProps: Record<string, any> = {
...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)