Skip to content

Commit

Permalink
fix: #48 check if hotkeys is defined
Browse files Browse the repository at this point in the history
  • Loading branch information
clintonfray committed Oct 5, 2022
1 parent fed4c40 commit 421a2e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/options/editor/Editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ class Editor extends React.Component {

const hotkeyOptions = Array.from(Array(9).keys())

const currentHotkeys = current.hotkeys.filter((e) => e !== null)
const currentHotkeys = current.hotkeys ? current.hotkeys.filter((e) => e !== null) : []

console.log('CH', currentHotkeys)

Expand Down

0 comments on commit 421a2e2

Please sign in to comment.