Skip to content

Commit 4d46ee3

Browse files
committed
Update proto to readonly array reference (fix downstream issue)
1 parent 24f7730 commit 4d46ee3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

mesop/web/src/dev_tools/editor_panel/editor_fields/editor_fields.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ type Prefixes = Prefix[];
5050
})
5151
export class EditorFields {
5252
@Input()
53-
fields!: EditorField[];
53+
fields!: readonly EditorField[];
5454

5555
@Input()
5656
prefixes: Prefixes = [];
@@ -255,7 +255,7 @@ export class EditorFields {
255255
return display;
256256
}
257257

258-
getFieldsForListField(field: EditorField): EditorField[] {
258+
getFieldsForListField(field: EditorField): readonly EditorField[] {
259259
return (
260260
field
261261
.getType()!

mesop/web/src/dev_tools/editor_panel/editor_panel.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export class EditorPanel {
120120
);
121121
}
122122

123-
getFields(): EditorField[] {
123+
getFields(): readonly EditorField[] {
124124
return this.getComponentConfig()?.getFieldsList() ?? [];
125125
}
126126

0 commit comments

Comments
 (0)