mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-05-24 06:35:10 +00:00
fix(widgets): only show refresh button when remoteConfig is present
Previously showRefreshButton returned true whenever refresh_button wasn't explicitly false, including when remoteConfig itself was absent. Gate visibility on remoteConfig presence first so the refresh control only renders for combos that actually have a remote_combo config.
This commit is contained in:
@@ -65,7 +65,7 @@ const context: RemoteComboContext = {
|
||||
}
|
||||
|
||||
const showRefreshButton = computed(
|
||||
() => remoteConfig.value?.refresh_button !== false
|
||||
() => !!remoteConfig.value && remoteConfig.value.refresh_button !== false
|
||||
)
|
||||
|
||||
const isDisabled = computed(() => widget.options?.disabled === true)
|
||||
|
||||
Reference in New Issue
Block a user