chore: remove debug logging from bookmarkHelpers

- Remove 'NO MATCHES' debug logs from hydrateItems
- Console is now clean, hydration is working properly
This commit is contained in:
Gigi
2025-10-22 00:56:40 +02:00
parent 1929b50892
commit ab8665815b

View File

@@ -170,15 +170,6 @@ export function hydrateItems(
items: IndividualBookmark[],
idToEvent: Map<string, NostrEvent>
): IndividualBookmark[] {
const kind1Items = items.filter(b => b.kind === 1)
if (kind1Items.length > 0 && idToEvent.size > 0) {
const found = kind1Items.filter(b => idToEvent.has(b.id))
if (found.length === 0 && kind1Items.length > 0) {
console.log('❌ NO MATCHES! Sample item IDs:', kind1Items.slice(0, 3).map(b => b.id))
console.log('❌ Map keys:', Array.from(idToEvent.keys()).slice(0, 3))
}
}
return items
.map(item => {
const ev = idToEvent.get(item.id)