mirror of
				https://github.com/strapi/strapi.git
				synced 2025-10-30 17:37:26 +00:00 
			
		
		
		
	Merge pull request #20535 from strapi/v5/fix-not-found-error
fix(content-manager): add isFetching to loading check
This commit is contained in:
		
						commit
						e8fcfc5466
					
				| @ -97,7 +97,7 @@ const ListViewPage = () => { | ||||
|   }); | ||||
| 
 | ||||
|   const params = React.useMemo(() => buildValidParams(query), [query]); | ||||
|   const { data, error, isLoading } = useGetAllDocumentsQuery({ | ||||
|   const { data, error, isFetching } = useGetAllDocumentsQuery({ | ||||
|     model, | ||||
|     params, | ||||
|   }); | ||||
| @ -170,7 +170,7 @@ const ListViewPage = () => { | ||||
|     return formattedHeaders; | ||||
|   }, [displayedHeaders, formatMessage, list, runHookWaterfall, schema?.options?.draftAndPublish]); | ||||
| 
 | ||||
|   if (isLoading) { | ||||
|   if (isFetching) { | ||||
|     return <Page.Loading />; | ||||
|   } | ||||
| 
 | ||||
| @ -239,7 +239,7 @@ const ListViewPage = () => { | ||||
|       /> | ||||
|       <Layouts.Content> | ||||
|         <Flex gap={4} direction="column" alignItems="stretch"> | ||||
|           <Table.Root rows={results} headers={tableHeaders} isLoading={isLoading}> | ||||
|           <Table.Root rows={results} headers={tableHeaders} isLoading={isFetching}> | ||||
|             <TableActionsBar /> | ||||
|             <Table.Content> | ||||
|               <Table.Head> | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Fernando Chávez
						Fernando Chávez