@ditojs/admin 3.2.5 → 3.2.7

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.
@@ -527,6 +527,11 @@ export function processSchemaData(schema, data, {
527
527
  if (wrapPrimitives && !isObject(item)) {
528
528
  item = { [wrapPrimitives]: item }
529
529
  }
530
+ if (!isObject(item)) {
531
+ // Values that aren't objects hold no data of the form's
532
+ // components, e.g. ones that `compute()` converts to objects.
533
+ return item
534
+ }
530
535
  const itemDataPath =
531
536
  index !== null
532
537
  ? getDataPath(componentDataPath, index)
package/types/index.d.ts CHANGED
@@ -3043,9 +3043,10 @@ interface TreeSchema<$Item, $Type extends 'tree-list' | 'tree-object'>
3043
3043
  name: string
3044
3044
  }
3045
3045
  /**
3046
- * Properties schema for tree nodes.
3046
+ * The properties shown for tree nodes, displayed like the columns of
3047
+ * lists.
3047
3048
  */
3048
- properties?: Record<string, Component<$Item>>
3049
+ properties?: Columns<$Item>
3049
3050
  /**
3050
3051
  * Whether child nodes are expanded by default.
3051
3052
  */