Avoid duplicate backend summary notes in trend metrics
This commit is contained in:
@@ -972,7 +972,11 @@ export function computeFrontTrendSignal(
|
|||||||
];
|
];
|
||||||
|
|
||||||
if (backendNotes.length) {
|
if (backendNotes.length) {
|
||||||
backendNotes.slice(0, metrics.length).forEach((note, index) => {
|
const normalizedSummary = backendSummary.trim();
|
||||||
|
const alignedNotes = backendNotes.filter(
|
||||||
|
(note) => String(note || "").trim() !== normalizedSummary,
|
||||||
|
);
|
||||||
|
alignedNotes.slice(0, metrics.length).forEach((note, index) => {
|
||||||
if (!note) return;
|
if (!note) return;
|
||||||
metrics[index] = {
|
metrics[index] = {
|
||||||
...metrics[index],
|
...metrics[index],
|
||||||
|
|||||||
Reference in New Issue
Block a user