From 5172e6f8f08575807cbf23db33ad0db767d54313 Mon Sep 17 00:00:00 2001 From: Comfy Org PR Bot Date: Wed, 26 Nov 2025 06:46:52 +0900 Subject: [PATCH] [backport core/1.32] Fix: Selected assets count not updating in Imported tab (#6931) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Backport of #6842 to `core/1.32` Automatically created by backport workflow. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-6931-backport-core-1-32-Fix-Selected-assets-count-not-updating-in-Imported-tab-2b66d73d365081edb16ce02c2b55ada0) by [Unito](https://www.unito.io) Co-authored-by: Jin Yi --- src/components/sidebar/tabs/AssetsSidebarTab.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/sidebar/tabs/AssetsSidebarTab.vue b/src/components/sidebar/tabs/AssetsSidebarTab.vue index 7543216bd..a69637f3a 100644 --- a/src/components/sidebar/tabs/AssetsSidebarTab.vue +++ b/src/components/sidebar/tabs/AssetsSidebarTab.vue @@ -208,7 +208,7 @@ const shouldShowDeleteButton = computed(() => { const getOutputCount = (item: AssetItem): number => { const count = item.user_metadata?.outputCount - return typeof count === 'number' && count > 0 ? count : 0 + return typeof count === 'number' && count > 0 ? count : 1 } const shouldShowOutputCount = (item: AssetItem): boolean => {