mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
UI: Upgrade to Ember 4.12 (#22122)
This commit is contained in:
@@ -55,7 +55,9 @@ export default Component.extend({
|
||||
},
|
||||
|
||||
willDestroy() {
|
||||
if (!this.model.isDestroyed && !this.model.isDestroying) {
|
||||
// components are torn down after store is unloaded and will cause an error if attempt to unload record
|
||||
const noTeardown = this.store && !this.store.isDestroying;
|
||||
if (noTeardown && !this.model.isDestroyed && !this.model.isDestroying) {
|
||||
this.model.unloadRecord();
|
||||
}
|
||||
this._super(...arguments);
|
||||
|
||||
Reference in New Issue
Block a user