mirror of
				https://github.com/strapi/strapi.git
				synced 2025-10-26 15:41:49 +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
	 Fernando Chavez
						Fernando Chavez