mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-30 19:21:54 +00:00
Fix: Restore assets API short-circuit in WidgetSelectDropdown (#7563)
## Summary Removed in #6985, but breaks the dropdown loading on Cloud. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-7563-Fix-Restore-assets-API-short-circuit-in-WidgetSelectDropdown-2cb6d73d365081778a8dc65418d9f6be) by [Unito](https://www.unito.io)
This commit is contained in:
@@ -146,6 +146,9 @@ const outputItems = computed<DropdownItem[]>(() => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
const allItems = computed<DropdownItem[]>(() => {
|
const allItems = computed<DropdownItem[]>(() => {
|
||||||
|
if (props.isAssetMode && assetData) {
|
||||||
|
return assetData.dropdownItems.value
|
||||||
|
}
|
||||||
return [...inputItems.value, ...outputItems.value]
|
return [...inputItems.value, ...outputItems.value]
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user