Browse Source

HUE-6091 [core] Fixed a JS error on waitForObservable

Enrico Berti 8 năm trước cách đây
mục cha
commit
6b4b3ed2c9

+ 1 - 1
desktop/core/src/desktop/static/desktop/js/hue.utils.js

@@ -289,7 +289,7 @@ if (!('addRule' in CSSStyleSheet.prototype)) {
     else {
     else {
       var subscription = observable.subscribe(function(newValue) {
       var subscription = observable.subscribe(function(newValue) {
         if (newValue) {
         if (newValue) {
-          subscription.remove();
+          subscription.dispose();
           callback(observable);
           callback(observable);
         }
         }
       });
       });