Skip to content

Commit 8e39f49

Browse files
committed
Refactor to use _.isUndefined
1 parent a07627c commit 8e39f49

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/web/mage/adminhtml/browser.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,7 @@ define([
6262
this.modal.modal('openModal');
6363

6464
return;
65-
} else if (typeof options === 'undefined'
66-
&& self.modalLoaded === true) {
65+
} else if (_.isUndefined(options) && self.modalLoaded === true) {
6766
this.modal.modal('openModal');
6867
return;
6968
}

0 commit comments

Comments
 (0)