Skip to content

Commit

Permalink
#10765 properly construct quick actions request for the view below th…
Browse files Browse the repository at this point in the history
…e modal
  • Loading branch information
siemiatj committed Mar 8, 2021
1 parent e34e94e commit 52e504c
Showing 1 changed file with 16 additions and 14 deletions.
30 changes: 16 additions & 14 deletions frontend/src/actions/Actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,23 +56,25 @@ export function fetchQuickActions({
);

actionPromises = [].concat(requests);
}
} else {
const tableId = getTableId({ windowId, viewId });
const table = getTable(state, tableId);

actionPromises = [
dispatch(
requestQuickActions({
windowId,
viewId,
selectedIds: table.selected,
viewProfileId,
})
),
];
return Promise.all(actionPromises);
}
}

const tableId = getTableId({ windowId, viewId });
const table = getTable(state, tableId);

actionPromises = [
dispatch(
requestQuickActions({
windowId,
viewId,
selectedIds: table.selected,
viewProfileId,
})
),
];

return Promise.all(actionPromises);
};
}
Expand Down

0 comments on commit 52e504c

Please sign in to comment.