mirror of
https://github.com/router-for-me/Cli-Proxy-API-Management-Center.git
synced 2026-06-16 21:03:58 +08:00
fix(usage): resolve nullable merge in index
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user