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