Skip to content

Commit c5fd23c

Browse files
committed
- Use kbMatch ident instead of kbVariantId to distinguish match records
1 parent e4c898c commit c5fd23c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/views/ReportView/components/KbMatches/coalesce.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ const coalesceEntries = <T extends KbMatchedStatementType[]>(entries: T): Coales
101101
Object.entries(entry).forEach(([key, value]) => {
102102
if (Array.isArray(buckets[bucketKey][key])) {
103103
if (key === 'kbMatches' && Array.isArray(value)) {
104-
const kbMatchesIdents = buckets[bucketKey][key].map((kbM) => kbM.kbVariantId).join();
105-
const coalescedKbMatchesIdents = value.map((kbM) => kbM.kbVariantId).join();
104+
const kbMatchesIdents = buckets[bucketKey][key].map((kbM) => kbM.ident).join();
105+
const coalescedKbMatchesIdents = value.map((kbM) => kbM.ident).join();
106106
if (kbMatchesIdents !== coalescedKbMatchesIdents) {
107107
buckets[bucketKey][key] = buckets[bucketKey][key].concat(value);
108108
}

0 commit comments

Comments
 (0)