@01-edu/shared 1.1.10 → 1.2.1

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.
Files changed (2) hide show
  1. package/attrs.js +2 -1
  2. package/package.json +1 -1
package/attrs.js CHANGED
@@ -357,7 +357,8 @@ export const partialExpandDynamicAttrs = (object, getUser, filterFn) => {
357
357
  processAttributes(filteredDefaultAttrs, object, getUser)
358
358
  let prev
359
359
  for (const child of Object.values(object.children)) {
360
- child.parent = object
360
+ // we only add the parent if it does not exist
361
+ if (!child.parent) child.parent = object
361
362
  prev && (prev.next = child) && (child.prev = prev)
362
363
  prev = child
363
364
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@01-edu/shared",
3
- "version": "1.1.10",
3
+ "version": "1.2.1",
4
4
  "type": "module",
5
5
  "description": "",
6
6
  "scripts": {