Interactive interface for browsing global, full-resolution satellite imagery
move dispatcher after modal for better ux #2144
Benjamin King80fa8d8f5c56
diff --git a/web/js/modules/vector-styles/util.js b/web/js/modules/vector-styles/util.jsindex 151fbe189..8a8fff63b 100644--- a/web/js/modules/vector-styles/util.js+++ b/web/js/modules/vector-styles/util.js@@ -126,9 +126,7 @@ export function onMapClickGetVectorFeatures(e, map, store) {}});- if (Object.entries(selected).length || (Object.entries(lastSelection).length && !(modalState.id.includes('vector_dialog') && modalState.isOpen))) {- store.dispatch(selectVectorFeatures(selected));- }+if (metaArray.length) {store.dispatch(openCustomContent(dialogId,{@@ -149,6 +147,9 @@ export function onMapClickGetVectorFeatures(e, map, store) {}}));+ if (Object.entries(selected).length || (Object.entries(lastSelection).length && !(modalState.id.includes('vector_dialog') && modalState.isOpen))) {+ store.dispatch(selectVectorFeatures(selected));+ }};}export function updateVectorSelection(selectionObj, lastSelection, layers, type, state) {