atmosphere explorer

remove account and identity events from top collections

handle.invalid 1653950c 90badb27

verified
+4 -2
+4 -2
src/views/stream/index.tsx
··· 46 46 // Track statistics in variables (batched update) 47 47 totalEventsCount++; 48 48 const eventType = record.kind || record.$type || "unknown"; 49 - const collection = record.commit?.collection || record.op?.path?.split("/")[0] || "unknown"; 50 49 eventTypesMap[eventType] = (eventTypesMap[eventType] || 0) + 1; 51 - collectionsMap[collection] = (collectionsMap[collection] || 0) + 1; 50 + if (eventType !== "account" && eventType !== "identity") { 51 + const collection = record.commit?.collection || record.op?.path?.split("/")[0] || "unknown"; 52 + collectionsMap[collection] = (collectionsMap[collection] || 0) + 1; 53 + } 52 54 53 55 if (!paused()) { 54 56 pendingRecords.push(record);