From 0f9e639a43871f90e4a5a767eb426dc878a57e49 Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Mon, 19 Dec 2022 07:25:40 -0600 Subject: [PATCH] Fix JSX for hotkeys --- src/features/hotkey.tsx | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/features/hotkey.tsx b/src/features/hotkey.tsx index b716f9a..e03b6ec 100644 --- a/src/features/hotkey.tsx +++ b/src/features/hotkey.tsx @@ -102,11 +102,13 @@ registerInfoComponent(

Hotkeys

- {keys.map(hotkey => ( -
- {hotkey?.description} -
- ))} + {keys + .filter(key => key != null) + .map(hotkey => ( +
+ {hotkey?.description} +
+ ))}
); })