fix: Race condition with policies removed on app load

This commit is contained in:
Tom Moor
2024-09-30 17:51:01 -04:00
parent ffae5d2f20
commit cd86877cb0
+1 -1
View File
@@ -150,7 +150,7 @@ export default abstract class Model {
this.isNew = false;
this.persistedAttributes = this.toAPI();
if (!this.initialized) {
if (this.initialized) {
LifecycleManager.executeHooks(
this.constructor,
"afterChange",