diff --git a/packages/project-editor/features/variable/variable.tsx b/packages/project-editor/features/variable/variable.tsx index ccb48607..40a9e4fe 100644 --- a/packages/project-editor/features/variable/variable.tsx +++ b/packages/project-editor/features/variable/variable.tsx @@ -1096,7 +1096,14 @@ export class StructureField extends EezObject implements IStructureField { variableTypeProperty ], listLabel: (field: StructureField, collapsed: boolean) => - collapsed ? field.name : "", + collapsed ? ( + + {field.name}: {field.type} + + ) : ( + "" + ), + check: (structureField: StructureField, messages: IMessage[]) => { if (!structureField.name) { messages.push(propertyNotSetMessage(structureField, "name"));