Skip to content

Commit

Permalink
Aways reset subscription
Browse files Browse the repository at this point in the history
  • Loading branch information
Andries Smit authored and Andries Smit committed May 30, 2019
1 parent 87fba38 commit 882d040
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/LabelSelect/widget/LabelSelect.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,16 @@ define([
this._constructed = true;
}

this._resetSubscriptions();
if (obj) {
domStyle.set(this.domNode, "visibility", "visible");

this._contextObj = obj;
this._fetchCurrentLabels(callback);
this._resetSubscriptions();
} else {
domStyle.set(this.domNode, "visibility", "hidden");
this._executeCallback(callback, "update");
}
this._executeCallback(callback, "update");
},

_fetchCurrentLabels: function(callback) {
Expand Down

0 comments on commit 882d040

Please sign in to comment.