Fix JSX for hotkeys

This commit is contained in:
thepaperpilot 2022-12-19 07:25:40 -06:00
parent 7dbce4eadc
commit 0f9e639a43

View file

@ -102,11 +102,13 @@ registerInfoComponent(
<div>
<br />
<h4>Hotkeys</h4>
{keys.map(hotkey => (
<div v-if={hotkey !== undefined}>
<HotkeyVue hotkey={hotkey as GenericHotkey} /> {hotkey?.description}
</div>
))}
{keys
.filter(key => key != null)
.map(hotkey => (
<div>
<HotkeyVue hotkey={hotkey as GenericHotkey} /> {hotkey?.description}
</div>
))}
</div>
);
})