Format the files this branch wrote or broke with Prettier

This commit is contained in:
German Khokhlov committed 2026-11-03 23:02:04 +04:00
1 parent 227e3c2051
commit 8d7f055572
90 files changed
+1408 -640

No files matched your search

+5 -2
View File
@@ -585,7 +585,8 @@ export function createLocalGeoJsonLayer(
// windows (before vs after the add settles) need different cleanup.
let addedToScene = false;
try {
let features = _cachedFeatures ?? (readFeatures ? await readFeatures() : null);
let features =
_cachedFeatures ?? (readFeatures ? await readFeatures() : null);
if (_destroyed) return;
if (!features) {
const response = await fetch(url, {
@@ -1065,7 +1066,9 @@ export function createLocalGeoJsonLayer(
},
restoreFeatureSelection(viewer, featureId) {
const entity = _dataSource?.entities.values.find((item) => String(item.id) === featureId);
const entity = _dataSource?.entities.values.find(
(item) => String(item.id) === featureId,
);
if (!entity) return false;
viewer.selectedEntity = entity;
selectEntityContext(entity);