Skip to content

Commit f599b89

Browse files
[backport cloud/1.32] Fix: Selected assets count not updating in Imported tab (#6873)
Backport of #6842 to `cloud/1.32` Automatically created by backport workflow. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-6873-backport-cloud-1-32-Fix-Selected-assets-count-not-updating-in-Imported-tab-2b46d73d365081a0992bed6de971d81e) by [Unito](https://www.unito.io) Co-authored-by: Jin Yi <jin12cc@gmail.com>
1 parent 19b673c commit f599b89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/sidebar/tabs/AssetsSidebarTab.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ const shouldShowDeleteButton = computed(() => {
208208
209209
const getOutputCount = (item: AssetItem): number => {
210210
const count = item.user_metadata?.outputCount
211-
return typeof count === 'number' && count > 0 ? count : 0
211+
return typeof count === 'number' && count > 0 ? count : 1
212212
}
213213
214214
const shouldShowOutputCount = (item: AssetItem): boolean => {

0 commit comments

Comments
 (0)