Keep Contacts, active layer intents and mapped sites across globe switches

This commit is contained in:
German Khokhlov committed 2026-11-03 03:05:47 +04:00
1 parent 81bcae907f
commit 87bbe14748
35 files changed
+465 -118

No files matched your search

+2 -2
View File
@@ -44,11 +44,11 @@ export function createModel({ state: layerState, services, parts, source }) {
}
function installationSurfaceHeightM(record) {
const floor = services.ground?.cachedGroundFloor?.(
const floor = services?.ground?.cachedGroundFloor?.(
record?.latitude,
record?.longitude,
);
return services.ground?.floorAltitudeM?.(null, floor) ?? 0;
return services?.ground?.floorAltitudeM?.(null, floor) ?? 0;
}
/**