fix: lodash dependencies (#4791)
This commit is contained in:
1 parent
887a892a5b
commit
4e16099ad3
12 files changed
+197
-165
No files matched your search
@@ -1,6 +1,6 @@
|
||||
import objectHash from 'object-hash';
|
||||
import isEqual from 'lodash.isequal';
|
||||
import { hotkeys } from '../utils';
|
||||
import isequal from 'lodash.isequal';
|
||||
import Hotkey from './Hotkey';
|
||||
|
||||
/**
|
||||
@@ -65,7 +65,7 @@ export class HotkeysManager {
|
||||
setHotkeys(hotkeyDefinitions = [], name = 'hotkey-definitions') {
|
||||
try {
|
||||
const definitions = this.getValidDefinitions(hotkeyDefinitions);
|
||||
if (isequal(definitions, this.hotkeyDefaults)) {
|
||||
if (isEqual(definitions, this.hotkeyDefaults)) {
|
||||
localStorage.removeItem(name);
|
||||
} else {
|
||||
localStorage.setItem(name, JSON.stringify(definitions));
|
||||
|
||||
Reference in new issue
Block a user