UI: Upgrade to Ember 4.12 (#22122)

This commit is contained in:
Chelsea Shaw
2023-08-01 14:02:21 -05:00
committed by GitHub
parent 1d01045e85
commit 8731cee07a
115 changed files with 3294 additions and 1522 deletions

View File

@@ -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);