cherry-pick(#6568): Only decrement and save if there is composition b… (#6599)

cherry-pick(#6568): 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-17 14:26:41 -07:00 committed by GitHub
parent c6e913245d
commit eb95b1f50b
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();