mirror of
https://github.com/strapi/strapi.git
synced 2025-09-25 16:29:34 +00:00
Merge branch 'main' into protect-telemetry-properties
This commit is contained in:
commit
ebe63ba8fb
@ -82,7 +82,7 @@ export const MediaLibrary = () => {
|
||||
});
|
||||
|
||||
const {
|
||||
data: folders,
|
||||
data: folders = [],
|
||||
isLoading: foldersLoading,
|
||||
errors: foldersError,
|
||||
} = useFolders({
|
||||
@ -103,7 +103,7 @@ export const MediaLibrary = () => {
|
||||
push(pathname);
|
||||
}
|
||||
|
||||
const folderCount = folders?.length || 0;
|
||||
const folderCount = folders.length;
|
||||
const assets = assetsData?.results;
|
||||
const assetCount = assets?.length ?? 0;
|
||||
const isLoading = isCurrentFolderLoading || foldersLoading || permissionsLoading || assetsLoading;
|
||||
|
Loading…
x
Reference in New Issue
Block a user