Fix duplicate keys on grid skeletons
This commit is contained in:
parent
e2e3a50f1f
commit
5eea3d7e01
2 changed files with 4 additions and 4 deletions
|
@ -225,9 +225,9 @@ export const DefaultCard = ({
|
||||||
</ImageContainer>
|
</ImageContainer>
|
||||||
<DetailContainer>
|
<DetailContainer>
|
||||||
<Stack spacing="sm">
|
<Stack spacing="sm">
|
||||||
{controls.cardRows.map((row) => (
|
{controls.cardRows.map((row, index) => (
|
||||||
<Skeleton
|
<Skeleton
|
||||||
key={row.arrayProperty}
|
key={`${index}-${columnIndex}-${row.arrayProperty}`}
|
||||||
visible
|
visible
|
||||||
height={14}
|
height={14}
|
||||||
radius="sm"
|
radius="sm"
|
||||||
|
|
|
@ -208,9 +208,9 @@ export const PosterCard = ({
|
||||||
</Skeleton>
|
</Skeleton>
|
||||||
<DetailContainer>
|
<DetailContainer>
|
||||||
<Stack spacing="sm">
|
<Stack spacing="sm">
|
||||||
{controls.cardRows.map((row) => (
|
{controls.cardRows.map((row, index) => (
|
||||||
<Skeleton
|
<Skeleton
|
||||||
key={row.arrayProperty}
|
key={`${index}-${columnIndex}-${row.arrayProperty}`}
|
||||||
visible
|
visible
|
||||||
height={14}
|
height={14}
|
||||||
radius="sm"
|
radius="sm"
|
||||||
|
|
Reference in a new issue