Avoid duplicate backend summary notes in trend metrics

This commit is contained in:
2569718930@qq.com
2026-03-21 19:01:14 +08:00
parent c795d90993
commit 2eb46853bf
+5 -1
View File
@@ -972,7 +972,11 @@ export function computeFrontTrendSignal(
];
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;
metrics[index] = {
...metrics[index],