mirror of
https://github.com/remvze/moodist.git
synced 2025-12-17 00:44:14 +00:00
fix: add keys to filler elements
This commit is contained in:
parent
b117a4b495
commit
b7c7d40bf9
1 changed files with 4 additions and 1 deletions
|
|
@ -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 && (
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue