@mytec: iter1.5 ready for testing
This commit is contained in:
@@ -37,13 +37,14 @@ export default function CoverageBoundary({
|
||||
const boundaryPaths = useMemo(() => {
|
||||
if (!visible || points.length === 0) return [];
|
||||
|
||||
// Group points by siteId
|
||||
// Group points by siteId (fallback to 'all' when siteId not available from API)
|
||||
const bySite = new Map<string, CoveragePoint[]>();
|
||||
for (const p of points) {
|
||||
let arr = bySite.get(p.siteId);
|
||||
const key = p.siteId || 'all';
|
||||
let arr = bySite.get(key);
|
||||
if (!arr) {
|
||||
arr = [];
|
||||
bySite.set(p.siteId, arr);
|
||||
bySite.set(key, arr);
|
||||
}
|
||||
arr.push(p);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user