Actually, filter is redundant

This commit is contained in:
thepaperpilot 2022-12-19 07:29:57 -06:00
parent 0f9e639a43
commit ba34b7b581

View file

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