Skip to content

Commit

Permalink
fix(collection_widget): Use ?? ''
Browse files Browse the repository at this point in the history
  • Loading branch information
marker dao ® committed Nov 20, 2024
1 parent 9c4e7b3 commit fb301b8
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -390,9 +390,9 @@ const CollectionWidget = Widget.inherit({

_getElementClassToSkipRefreshId: noop,

_shouldSkipRefreshId($target) {
const elementClassToSkipRefreshId = this._getElementClassToSkipRefreshId();
const shouldSkipRefreshId = $target.hasClass(elementClassToSkipRefreshId);
_shouldSkipRefreshId(target) {
const elementClass = this._getElementClassToSkipRefreshId() ?? '';
const shouldSkipRefreshId = $(target).hasClass(elementClass);

return shouldSkipRefreshId;
},
Expand Down

0 comments on commit fb301b8

Please sign in to comment.