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 GitHub
parent 4a137449ba
commit a99d420011
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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)