Skip to content

Commit

Permalink
Fix an issue where the api tried to access shortcut overrides that we…
Browse files Browse the repository at this point in the history
…re not defined

Signed-off-by: Axel Boberg <[email protected]>
  • Loading branch information
axelboberg committed Mar 9, 2024
1 parent 58da384 commit fada154
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/shortcuts.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ exports.getShortcut = getShortcut
*/
async function getShortcuts () {
const index = state.getLocalState()?._shortcuts
const overrides = state.getLocalState()?._userDefaults?.shortcuts
const overrides = state.getLocalState()?._userDefaults?.shortcuts || {}

return Object.values(index || {})
.map(shortcut => {
Expand Down

0 comments on commit fada154

Please sign in to comment.