Fold duplicate coverage tests into their neighbours

This commit is contained in:
German Khokhlov committed 2026-11-06 22:01:39 +04:00
1 parent 5c4918affb
commit ea76fc4bc0
9 files changed
+94 -328

No files matched your search

+1 -3
View File
@@ -243,11 +243,9 @@ export function createViewport({ state: layerState, services, parts, source }) {
nextActive.size !== layerState._activeCityIds.size ||
[...nextActive].some((cityId) => !layerState._activeCityIds.has(cityId));
layerState._activeCityIds = nextActive;
if (layerState._activeCityIds.size === 0) {
if (nextActive.size === 0) {
layerState._count = 0;
layerState._lastUpdate = null;
if (changed) refreshRow();
return;
}
if (changed) refreshRow();