From ef0778d40753dfe3f43c3511dfdc885c2a8f96b5 Mon Sep 17 00:00:00 2001 From: Micheal Wells Date: Mon, 4 Dec 2023 11:28:26 -0800 Subject: [PATCH] fix drawn boundary issue from #2979 --- appv2/src/state/sagas/map.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/appv2/src/state/sagas/map.ts b/appv2/src/state/sagas/map.ts index babbaf04d..8dfefb16e 100644 --- a/appv2/src/state/sagas/map.ts +++ b/appv2/src/state/sagas/map.ts @@ -705,7 +705,7 @@ function* handle_MAP_INIT_FOR_RECORDSETS(action) { function* handle_REMOVE_CLIENT_BOUNDARY(action) { // save changes in local storage - persistClientBoundaries(action); + yield persistClientBoundaries(action); // remove from record sets applied const state = yield select(selectUserSettings); @@ -722,13 +722,13 @@ function* handle_REMOVE_CLIENT_BOUNDARY(action) { }); const actions = filteredSets.map((filteredSet) => { - const filterID = filteredSet?.tableFilters.filter((filter) => { + const filter = filteredSet?.tableFilters.filter((filter) => { return filter.filter === action.payload.id; })?.[0]; const actionObject = { type: RECORDSET_REMOVE_FILTER, payload: { - filterID: filterID, + filterID: filter?.id, filterType: 'tableFilter', setID: filteredSet.recordSetID }