Another guard for corrupted shortcuts
This commit is contained in:
parent
2df67f37a3
commit
a27bdbc69b
|
@ -210,6 +210,7 @@ function ShortcutsSettings() {
|
|||
{shortcuts.map((shortcut, i) => {
|
||||
const key = i + Object.values(shortcut);
|
||||
const { type } = shortcut;
|
||||
if (!SHORTCUTS_META[type]) return null;
|
||||
let { icon, title } = SHORTCUTS_META[type];
|
||||
if (typeof title === 'function') {
|
||||
title = title(shortcut);
|
||||
|
|
Loading…
Reference in a new issue