From 7e879c7bb9f581c1dc6ca9edd3d5a1cafb230fa4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kratochv=C3=ADl?= <xkrato10@fi.muni.cz> Date: Fri, 24 Jun 2022 12:22:40 +0200 Subject: [PATCH] feat: SearchPage - added key property to list items --- frontend/src/components/SearchPage.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/SearchPage.tsx b/frontend/src/components/SearchPage.tsx index b21c1f0..a71a9e1 100644 --- a/frontend/src/components/SearchPage.tsx +++ b/frontend/src/components/SearchPage.tsx @@ -266,7 +266,7 @@ export const SearchPage = () => { > {categories.map((category: CategoryIO) => { return ( - <Option value={category.id}> + <Option key={category.id} value={category.id}> {category.name} </Option> ); @@ -294,7 +294,7 @@ export const SearchPage = () => { > {directors.map((director: DirectorIO) => { return ( - <Option value={director.id}> + <Option key={director.id} value={director.id}> {`${director.name} ${director.surname}`} </Option> ); -- GitLab