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:
Glary-Bot
2026-05-17 08:11:12 +00:00
parent 34dff7e369
commit 67ca7ca3e1

View File

@@ -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)