@dnax/core 0.0.8 → 0.0.9

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.
@@ -225,7 +225,11 @@ function deepSetId(col: Collection, data: any) {
225
225
  data[f.name] = [];
226
226
  }
227
227
 
228
- if (f?.type == "relationship" && f?.relationType == "ref-to-many") {
228
+ if (
229
+ f?.type == "relationship" &&
230
+ f?.relationType == "ref-to-many" &&
231
+ !data[f?.name]
232
+ ) {
229
233
  data[f.name] = [];
230
234
  }
231
235
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dnax/core",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "devDependencies": {