rez_core 4.0.234 → 4.0.235

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": "4.0.234",
3
+ "version": "4.0.235",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -124,14 +124,20 @@ export class EntityJSONService extends EntityServiceImpl {
124
124
  if (attr.flat_json_key) result[attr.flat_json_key] = null;
125
125
  });
126
126
  linkedAttributes.forEach((link) => {
127
- if (link.applicable_attribute_key)
128
- result[link.applicable_attribute_key] = null;
127
+ // Use target_attribute_key instead of applicable_attribute_key
128
+ if (link.target_attribute_key) result[link.target_attribute_key] = null;
129
129
  });
130
- if(flag === 'all')
131
- return {flat_json: result,attributes: {mainAttributes,relatedAttributes,linkedAttributes}};
132
-
133
- return result;
130
+
131
+ if(flag === 'all') {
132
+ return {
133
+ flat_json: result,
134
+ attributes: { mainAttributes, relatedAttributes, linkedAttributes }
135
+ };
136
+ }
137
+
138
+ return result;
134
139
  }
140
+
135
141
 
136
142
  const dropdown: any[] = [];
137
143
  dropdown.push(