🐛(components): add missing button types and keys
Check Deno code / Check Deno code (pull_request) Successful in 40s

Add type="button" to the EditMobility and UploadStudents buttons
to prevent default form submission behavior.
Include a key prop on Student components in Promotion for stable list rendering.
This commit is contained in:
2026-01-09 12:41:51 +01:00
parent 91f7b6c022
commit 58c8ff56ba
3 changed files with 3 additions and 3 deletions
@@ -22,7 +22,7 @@ export default function Promotion(props: PromotionProps) {
<tbody>
{props.students
.filter((student) => student.promotionId === props.promo.id)
.map((student) => <Student student={student} />)}
.map((student) => <Student key={student.id} student={student} />)}
</tbody>
</table>
</div>