수정: 프로필 아바타 자산 필터 누락 보정

This commit is contained in:
2026-04-03 15:30:10 +09:00
parent 4285883e28
commit 907ea75182
5 changed files with 15 additions and 1 deletions

View File

@@ -1795,7 +1795,11 @@ async function listCustomItems({ queryText = '', page = 1, limit = 50, filterMod
const templateSrcSet = new Set(topicItemRows.map((row) => row.src).filter(Boolean))
const customSrcSet = new Set(customRows.map((row) => row.src).filter(Boolean))
const assetLibraryItems = assetRows
.filter((row) => row?.src && !templateSrcSet.has(row.src) && !customSrcSet.has(row.src))
.filter((row) => {
if (!row?.src) return false
if (avatarSrcSet.has(row.src) || thumbnailSrcSet.has(row.src)) return true
return !templateSrcSet.has(row.src) && !customSrcSet.has(row.src)
})
.map((row) => ({
id: `asset:${row.id}`,
assetId: row.id,