From ebc232aa57d131492579d291d6b4fca7f42827b1 Mon Sep 17 00:00:00 2001 From: Marcin Cichocki Date: Thu, 11 Nov 2021 16:19:31 +0100 Subject: [PATCH] fix(client-electron): use unique id on lists --- src/electron/renderer/components/KeyBind.tsx | 2 +- src/electron/renderer/components/Select.tsx | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/electron/renderer/components/KeyBind.tsx b/src/electron/renderer/components/KeyBind.tsx index 2dadc980..9979e1af 100644 --- a/src/electron/renderer/components/KeyBind.tsx +++ b/src/electron/renderer/components/KeyBind.tsx @@ -185,7 +185,7 @@ export const KeyBind = ({ Unbound ) : ( selected.map((key, i) => ( - + {!!i && +} {key} diff --git a/src/electron/renderer/components/Select.tsx b/src/electron/renderer/components/Select.tsx index fdbababc..fe7a2591 100644 --- a/src/electron/renderer/components/Select.tsx +++ b/src/electron/renderer/components/Select.tsx @@ -97,7 +97,10 @@ const SelectViewer = ({ options, index }: SelectViewerProps) => ( {options[index].name} {options.map((option, i) => ( - + ))} @@ -150,8 +153,8 @@ export const Select = ({ return (