rez_core 2.0.34 → 2.0.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rez_core",
3
- "version": "2.0.34",
3
+ "version": "2.0.35",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -172,7 +172,7 @@ export class EntityServiceImpl implements EntityService<BaseEntity> {
172
172
  entityData.modified_date = new Date();
173
173
  if (loggedInUser) {
174
174
  entityData.modified_by = loggedInUser.id;
175
- if (!entityData.organization_id && entityData.parent_type !== 'ORG')
175
+ if (!entityData?.organization_id && entityData.entity_type !== 'ORG')
176
176
  entityData.organization_id = loggedInUser.organization_id;
177
177
  if (!entityData.enterprise_id)
178
178
  entityData.enterprise_id = loggedInUser.enterprise_id;