Fix display of arrays.

This commit is contained in:
zontreck 2024-07-21 06:29:19 -07:00
parent f88b0f8378
commit 7393c76dd0
3 changed files with 9 additions and 3 deletions

View file

@ -125,7 +125,13 @@ class EditorState extends State<Editor> {
),
body: TreeView(
nodeBuilder: (context, node) {
return TagExt.render(node.data as Tag, context, didChangeState);
if (node.data is Tag) {
return TagExt.render(node.data as Tag, context, didChangeState);
} else {
return ListTile(
title: Text("${node.label}"),
);
}
},
controller: controller,
),