mirror of
https://github.com/strapi/strapi.git
synced 2025-11-10 15:19:00 +00:00
chore: removes optional chaining
This commit is contained in:
parent
fdb11910ab
commit
32972b0433
@ -103,7 +103,7 @@ export const MediaLibrary = () => {
|
|||||||
push(pathname);
|
push(pathname);
|
||||||
}
|
}
|
||||||
|
|
||||||
const folderCount = folders?.length || 0;
|
const folderCount = folders.length;
|
||||||
const assets = assetsData?.results;
|
const assets = assetsData?.results;
|
||||||
const assetCount = assets?.length ?? 0;
|
const assetCount = assets?.length ?? 0;
|
||||||
const isLoading = isCurrentFolderLoading || foldersLoading || permissionsLoading || assetsLoading;
|
const isLoading = isCurrentFolderLoading || foldersLoading || permissionsLoading || assetsLoading;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user