Commit 1bc7c769 authored by Harrison Healey's avatar Harrison Healey
Browse files

PLT-7561 Fixed crash when translated shortcuts don't include keys (master)

parent d22d0ec6
......@@ -376,14 +376,18 @@ function renderShortcut(text) {
const shortcut = text.split('\t');
const description = <span>{shortcut[0]}</span>;
const keys = shortcut[1].split('|').map((key) =>
<span
className='shortcut-key'
key={key}
>
{key}
</span>
);
let keys = null;
if (shortcut.length > 1) {
keys = shortcut[1].split('|').map((key) =>
<span
className='shortcut-key'
key={key}
>
{key}
</span>
);
}
return (
<div className='shortcut-line'>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment