Merge branch 'main' into protect-telemetry-properties

This commit is contained in:
Christian 2022-12-13 17:16:23 +01:00 committed by GitHub
commit ebe63ba8fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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