Skip to content

Commit 61fd677

Browse files
committed
Make null checks work with undefined variables
1 parent 8886438 commit 61fd677

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/server/static/components/annotationMixin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export default {
122122
},
123123

124124
replaceNull(shortcut) {
125-
if (shortcut === null) {
125+
if (shortcut == null) {
126126
shortcut = '';
127127
}
128128
shortcut = shortcut.split(' ');

app/server/static/components/filter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export function simpleShortcut(shortcut) {
2-
let simplified = shortcut === null ? '' : shortcut;
2+
let simplified = shortcut == null ? '' : shortcut;
33
simplified = simplified.replace('ctrl', 'C');
44
simplified = simplified.replace('shift', 'S');
55
simplified = simplified.split(' ').join('-');

0 commit comments

Comments
 (0)