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 561b338 commit 4efade3
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 ? current.hotkeys : []
const currentHotkeys = current.hotkeys ? current.hotkeys.filter((e) => e !== null) : []

console.log('CH', currentHotkeys)

Expand Down

0 comments on commit 4efade3

Please sign in to comment.