diff options
Diffstat (limited to 'addons/web/static/src/js/component_extension.js')
| -rw-r--r-- | addons/web/static/src/js/component_extension.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web/static/src/js/component_extension.js b/addons/web/static/src/js/component_extension.js index ce9a3228569..4edaee807dd 100644 --- a/addons/web/static/src/js/component_extension.js +++ b/addons/web/static/src/js/component_extension.js @@ -13,12 +13,12 @@ return new Promise((resolve, reject) => { return this.env.services.rpc(...arguments) .then(result => { - if (!this.__owl__.isDestroyed) { + if (this.__owl__.status !== 5 /* not destroyed */) { resolve(result); } }) .catch(reason => { - if (!this.__owl__.isDestroyed) { + if (this.__owl__.status !== 5) /* not destroyed */ { reject(reason); } }); |
