@routier/core 0.0.4 → 0.0.6

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.
@@ -900,10 +900,11 @@ class CloneArrayHandler extends _types__WEBPACK_IMPORTED_MODULE_0__.PropertyInfo
900
900
  // Child properties will take care of this
901
901
  return builder;
902
902
  }
903
- const slot = builder.get("assignments");
904
- const resultAssignmentPath = property.getAssignmentPath({ parent: "result" });
903
+ const entitySelectorPath = property.getSelectrorPath({ parent: "entity" });
905
904
  if (property.parent == null) {
906
- slot.assign(`${resultAssignmentPath}`).value("{}");
905
+ const resultAssignmentPath = property.getAssignmentPath({ parent: "result" });
906
+ const slot = builder.get("if");
907
+ slot.if(`${entitySelectorPath} != null`).appendBody(`${resultAssignmentPath} = [...${entitySelectorPath}]`);
907
908
  return builder;
908
909
  }
909
910
  // slotPath.push(...property.getParentPathArray());