Interactive interface for browsing global, full-resolution satellite imagery
don't show efc param when set to default value
Jason Kent5d31bed8a442
diff --git a/web/js/modules/natural-events/util.js b/web/js/modules/natural-events/util.jsindex ddcb4228b..d4cf43f39 100644--- a/web/js/modules/natural-events/util.js+++ b/web/js/modules/natural-events/util.js@@ -56,7 +56,8 @@ export function serializeEventFilterDates(currentItemState, state) {export function serializeCategories(categories, state) {const eventsTabActive = state.events.active;- return eventsTabActive ? categories.map(({ id }) => id).join(',') : undefined;+ const usingDefaults = categories === state.config.naturalEvents.categories;+ return eventsTabActive && !usingDefaults ? categories.map(({ id }) => id).join(',') : undefined;}export function mapLocationToEventFilterState(parameters, stateFromLocation, state) {