mirror of
https://github.com/strapi/strapi.git
synced 2025-07-19 15:06:11 +00:00
fix(content-manager): dont perform unnecessary requests
This commit is contained in:
parent
a7ba501bdf
commit
14afa09a9f
@ -52,9 +52,10 @@ const TableActions = ({ document }: TableActionsProps) => {
|
||||
return (
|
||||
<DescriptionComponentRenderer
|
||||
props={props}
|
||||
descriptions={(
|
||||
plugins['content-manager'].apis as ContentManagerPlugin['config']['apis']
|
||||
).getDocumentActions()}
|
||||
descriptions={(plugins['content-manager'].apis as ContentManagerPlugin['config']['apis'])
|
||||
.getDocumentActions()
|
||||
// We explicitly remove the PublishAction from description so we never render it and we don't make unnecessary requests.
|
||||
.filter((action) => action.name !== 'PublishAction')}
|
||||
>
|
||||
{(actions) => {
|
||||
const tableRowActions = actions.filter((action) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user