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,8 +102,10 @@ registerInfoComponent(
<div> <div>
<br /> <br />
<h4>Hotkeys</h4> <h4>Hotkeys</h4>
{keys.map(hotkey => ( {keys
<div v-if={hotkey !== undefined}> .filter(key => key != null)
.map(hotkey => (
<div>
<HotkeyVue hotkey={hotkey as GenericHotkey} /> {hotkey?.description} <HotkeyVue hotkey={hotkey as GenericHotkey} /> {hotkey?.description}
</div> </div>
))} ))}