mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-13 03:26:21 +01:00
Another guard for corrupted shortcuts
This commit is contained in:
parent
2df67f37a3
commit
a27bdbc69b
1 changed files with 1 additions and 0 deletions
|
@ -210,6 +210,7 @@ function ShortcutsSettings() {
|
||||||
{shortcuts.map((shortcut, i) => {
|
{shortcuts.map((shortcut, i) => {
|
||||||
const key = i + Object.values(shortcut);
|
const key = i + Object.values(shortcut);
|
||||||
const { type } = shortcut;
|
const { type } = shortcut;
|
||||||
|
if (!SHORTCUTS_META[type]) return null;
|
||||||
let { icon, title } = SHORTCUTS_META[type];
|
let { icon, title } = SHORTCUTS_META[type];
|
||||||
if (typeof title === 'function') {
|
if (typeof title === 'function') {
|
||||||
title = title(shortcut);
|
title = title(shortcut);
|
||||||
|
|
Loading…
Reference in a new issue