mirror of
https://github.com/strapi/strapi.git
synced 2025-08-07 16:29:18 +00:00
Merge pull request #13438 from strapi/features/ML-folder-select-all
ML: Fix bulk action "select all"
This commit is contained in:
commit
1bcd0e49c6
@ -142,7 +142,12 @@ export const MediaLibrary = () => {
|
|||||||
(assetCount > 0 || folderCount > 0) &&
|
(assetCount > 0 || folderCount > 0) &&
|
||||||
selected.length === assetCount + folderCount
|
selected.length === assetCount + folderCount
|
||||||
}
|
}
|
||||||
onChange={() => selectAll([assets, folders])}
|
onChange={() => {
|
||||||
|
selectAll([
|
||||||
|
...assets.map(asset => ({ ...asset, type: 'asset' })),
|
||||||
|
...folders.map(folder => ({ ...folder, type: 'folder' })),
|
||||||
|
]);
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
</BoxWithHeight>
|
</BoxWithHeight>
|
||||||
)}
|
)}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user