Przeglądaj źródła

:beetle: Fix key warning for children

Had a bug whit hot-reload, but gone when refreshing.
DricomDragon 6 miesięcy temu
rodzic
commit
69ba2cb5b8
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      dev-front/src/mech/squad/Squad.tsx

+ 1 - 1
dev-front/src/mech/squad/Squad.tsx

@@ -57,7 +57,7 @@ function Squad({pickObservers} : {pickObservers: {[key: string] : MechObserver}}
             <h2>Custom squad</h2>
             <div className='mech-members'>
                 {squadMechs.map((m, index) => (
-                    <Member mech={m} remover={() => removeFromSquad(index)}/>
+                    <Member key={index} mech={m} remover={() => removeFromSquad(index)}/>
                 ))}
             </div>
             <div className='squad-description'>