fix(usage): resolve nullable merge in index

This commit is contained in:
Supra4E8C
2026-04-03 01:32:35 +08:00
parent f8455dcdb8
commit 4d3bd279a0
+3 -1
View File
@@ -41,7 +41,9 @@ export function collectUsageDetailsForCandidates(
if (!merged) {
merged = [...firstDetails];
}
details.forEach((detail) => merged.push(detail));
for (const detail of details) {
merged.push(detail);
}
}
return merged ?? firstDetails ?? EMPTY_USAGE_DETAILS;