Fix navigation to new row actions not working

This commit is contained in:
Andrew Kingston 2024-09-03 20:10:46 +01:00
parent 7db263dd3b
commit 26b5784345
No known key found for this signature in database
1 changed files with 8 additions and 3 deletions

View File

@ -56,12 +56,17 @@ export class RowActionStore extends BudiStore {
// Enable action on this view if adding via a view
if (viewId) {
await this.enableView(tableId, viewId, res.id)
await Promise.all([
this.enableView(tableId, viewId, res.id),
automationStore.actions.fetch(),
])
} else {
await this.refreshRowActions(tableId)
await Promise.all([
this.refreshRowActions(tableId),
automationStore.actions.fetch(),
])
}
automationStore.actions.fetch()
return res
}