[FIX] Field Groups hydration

This commit is contained in:
2026-01-24 18:09:48 +02:00
parent 1263bc6ff3
commit 5f8672f7e5

View File

@@ -131,13 +131,16 @@ class AstromicFormController {
final key = parentUuid == null ? '${groupId}_manifest' : '${_getParentKey(groupId, parentUuid)}_manifest';
if (!_nodes.containsKey(key)) {
// 1. Create the node with the specific List<String> type
_nodes[key] = AstromicFieldNode<List<String>>(
[],
<String>[],
formatter: (v) => v.length.toString(),
parser: (v) => [],
parser: (v) => <String>[],
);
}
return _nodes[key] as ValueNotifier<List<String>>;
final node = _nodes[key];
return (node as dynamic) as ValueNotifier<List<String>>;
}
/// Adds a new instance to a dynamic group, generating a UUID and initializing all schema fields.