Skip to content

Commit

Permalink
Update variable.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
mvladic committed Nov 11, 2024
1 parent f6a391c commit b3d9268
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/project-editor/features/variable/variable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1096,7 +1096,14 @@ export class StructureField extends EezObject implements IStructureField {
variableTypeProperty
],
listLabel: (field: StructureField, collapsed: boolean) =>
collapsed ? field.name : "",
collapsed ? (
<span>
{field.name}: <i>{field.type}</i>
</span>
) : (
""
),

check: (structureField: StructureField, messages: IMessage[]) => {
if (!structureField.name) {
messages.push(propertyNotSetMessage(structureField, "name"));
Expand Down

0 comments on commit b3d9268

Please sign in to comment.