mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-23 07:50:15 +00:00
@@ -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() ?? ""
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user