diag(gps): перехват ошибки загрузки маркеров в ObjectManager

This commit is contained in:
2026-09-23 15:09:39 +03:00
parent 4b532540be
commit d54d2db351

View File

@@ -331,7 +331,13 @@ export function Yandex21Map({
collection.add(placemark); collection.add(placemark);
} }
} }
if (omObjects.length > 0) objectManager.add(omObjects); // ДИАГНОСТИКА: убрать после починки
try {
if (omObjects.length > 0) objectManager.add(omObjects);
console.log('[GPS-DIAG] OM added', omObjects.length, 'objects');
} catch (err) {
console.error('[GPS-DIAG] OM add FAILED', err);
}
// eslint-disable-next-line react-hooks/exhaustive-deps // eslint-disable-next-line react-hooks/exhaustive-deps
}, [dataKey, mapReady]); }, [dataKey, mapReady]);