Skip to content

Commit

Permalink
reduce what the client sends to api on crash log
Browse files Browse the repository at this point in the history
  • Loading branch information
micheal-w-wells committed Dec 1, 2023
1 parent ce9f8eb commit 2055b0d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/src/state/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,12 @@ const setupStore = (configuration: AppConfig) => {
const state = store.getState();
if (state.Auth.authenticated) {
let loggingState = JSON.parse(JSON.stringify(state));
loggingState.Map.activitiesGeoJSON = state.Map.activitiesGeoJSON?.features?.length;
loggingState.Map.IAPPGeoJSON = state.Map.IAPPGeoJSON?.features?.length;
loggingState.ActivityPage = null;
loggingState.IAPPSitePage = null;
loggingState.Map = null
loggingState.UserSettings.apiDocsWithSelectOptions = null;
loggingState.UserSettings.apiDocsWithViewOptions = null;

const postObj = {
error: { message: e.message + '' + e.stack },
clientState: loggingState,
Expand Down

0 comments on commit 2055b0d

Please sign in to comment.