lumber icon indicating copy to clipboard operation
lumber copied to clipboard

Smart Action does not receive records from Smart View

Open lesley-hays opened this issue 5 years ago • 0 comments

I'm triggering a Smart Action on a Smart View with a button, as per the docs. But the records don't appear to be sent to the action route.

Button looks like <button {{action 'triggerSmartAction' collection 'Do The Action' records}}> Do It </button>

Expected behavior

Logging req.body.data in the Smart Action route should show me the record IDs used in the Smart View.

Actual behavior

Returns a mostly empty object: { attributes: { ids: [], values: {}, collection_name: 'images' }, type: 'custom-action-requests' }

lesley-hays avatar Nov 03 '18 22:11 lesley-hays