mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-14 04:08:19 +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
|
lastKey = undefined
|
||||||
delayedAction = undefined
|
delayedAction = undefined
|
||||||
Analytics.handleEvent(a._id)
|
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 = {}
|
if (!Object.prototype.hasOwnProperty.call(actionProps, 'props')) actionProps.props = {}
|
||||||
actionProps.props.space = currentSpace
|
actionProps.props.space = currentSpace
|
||||||
await action(selectionDocs, evt, actionProps)
|
await action(selectionDocs, evt, actionProps)
|
||||||
|
Loading…
Reference in New Issue
Block a user