Skip to content

Commit

Permalink
Refactor to use _.isUndefined
Browse files Browse the repository at this point in the history
  • Loading branch information
Nazar65 committed Nov 12, 2019
1 parent a07627c commit 8e39f49
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/web/mage/adminhtml/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ define([
this.modal.modal('openModal');

return;
} else if (typeof options === 'undefined'
&& self.modalLoaded === true) {
} else if (_.isUndefined(options) && self.modalLoaded === true) {
this.modal.modal('openModal');
return;
}
Expand Down

0 comments on commit 8e39f49

Please sign in to comment.