fix: select all when page is greater than one

This commit is contained in:
gitstart 2022-12-08 16:22:35 +00:00
parent dadcc9a2b5
commit 1ae2671f4c

View File

@ -211,7 +211,7 @@ export const MediaLibrary = () => {
}
selectAll([
...assets.map((asset) => ({ ...asset, type: 'asset' })),
...folders.map((folder) => ({ ...folder, type: 'folder' })),
...(folders ?? []).map((folder) => ({ ...folder, type: 'folder' })),
]);
}}
/>