Only decrement and save if there is composition but no child object reference (#6568)

Co-authored-by: David Tsay <3614296+davetsay@users.noreply.github.com>
This commit is contained in:
Shefali Joshi 2023-04-06 23:17:52 -07:00 committed by GitHub
parent 6786be54fa
commit 4963aff8a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -238,7 +238,9 @@ export default class ExportAsJSONAction {
}
}
});
this._decrementCallsAndSave();
if (!childObjectReferenceId) {
this._decrementCallsAndSave();
}
});
} else if (!childObjectReferenceId) {
this._decrementCallsAndSave();