Skip to content

Commit bb52319

Browse files
committed
1 parent a7e4683 commit bb52319

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

packages/shortcuts/shortcuts.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,9 @@ export const ShortcutsToolbarButtons = observer(
194194
const Keybinding = observer(
195195
class Keybinding extends React.Component<{ keybinding: string }, {}> {
196196
render() {
197+
if (!this.props.keybinding) {
198+
return null;
199+
}
197200
return this.props.keybinding
198201
.split("+")
199202
.map(part => (

0 commit comments

Comments
 (0)