mirror of
https://github.com/hcengineering/platform.git
synced 2025-01-23 03:49:49 +00:00
fix: pass actionPopup to action props (#6467)
Signed-off-by: Alexander Onnikov <Alexander.Onnikov@xored.com>
This commit is contained in:
parent
4a137449ba
commit
a99d420011
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user