fix: add keys to filler elements

This commit is contained in:
MAZE 2023-10-14 15:18:22 +03:30
parent b117a4b495
commit b7c7d40bf9

View file

@ -58,7 +58,10 @@ export function Sounds({ functional, id, sounds }: SoundsProps) {
/>
))}
{sounds.length < 2 && new Array(2 - sounds.length).fill(<div />)}
{sounds.length < 2 &&
new Array(2 - sounds.length)
.fill(null)
.map((_, index) => <div key={index} />)}
</div>
{sounds.length > 6 && (