mirror of
https://github.com/strapi/strapi.git
synced 2025-11-03 11:25:17 +00:00
chore: removes optional chaining
This commit is contained in:
parent
fdb11910ab
commit
32972b0433
@ -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