move unique key up in hierarchy

This commit is contained in:
Tobias Frank 2023-03-08 15:29:36 +01:00
parent 51a6c11db6
commit b1e105fca5

View File

@ -31,8 +31,8 @@ export const AssetGridList = ({
if (onReorderAsset) {
return (
<GridItem col={3} height="100%">
<Draggable key={asset.id} index={index} moveItem={onReorderAsset} id={asset.id}>
<GridItem key={asset.id} col={3} height="100%">
<Draggable index={index} moveItem={onReorderAsset} id={asset.id}>
<AssetCard
allowedTypes={allowedTypes}
asset={asset}