mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-09 01:20:09 +00:00
fix: added fallback labels
This commit is contained in:
@@ -47,6 +47,8 @@ const filteredProps = computed(() =>
|
||||
)
|
||||
|
||||
const currentLabel = computed(() => {
|
||||
return modelValue.value ? widget.options?.on : widget.options?.off
|
||||
return modelValue.value
|
||||
? (widget.options?.on ?? (widget.options?.off ? 'true' : undefined))
|
||||
: (widget.options?.off ?? (widget.options?.on ? 'false' : undefined))
|
||||
})
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user