chore: removes optional chaining

This commit is contained in:
gitstart 2022-12-13 10:03:59 +00:00
parent fdb11910ab
commit 32972b0433

View File

@ -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;