Type ButtonWidget (#583)

* Type ButtonWidget

* nit
This commit is contained in:
Chenlei Hu
2025-02-24 16:30:04 -05:00
committed by GitHub
parent 630fd00086
commit 170341db73
3 changed files with 16 additions and 9 deletions

View File

@@ -12,7 +12,7 @@ export class TextWidget extends BaseWidget implements IStringWidget {
constructor(widget: IStringWidget) {
super(widget)
this.type = widget.type as "text" | "string"
this.type = widget.type ?? "string"
this.value = widget.value?.toString() ?? ""
}