From 1e1a6e01cf8853372e34b826938556704332ba13 Mon Sep 17 00:00:00 2001 From: Dallas Richmond Date: Tue, 30 Jul 2024 13:54:46 -0700 Subject: [PATCH] Fixed issue with logout/login --- app/frontend/src/wells/components/SearchColumnSelect.vue | 1 - app/frontend/src/wells/store/index.js | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/frontend/src/wells/components/SearchColumnSelect.vue b/app/frontend/src/wells/components/SearchColumnSelect.vue index 9a1131a5a5..5552840229 100644 --- a/app/frontend/src/wells/components/SearchColumnSelect.vue +++ b/app/frontend/src/wells/components/SearchColumnSelect.vue @@ -229,7 +229,6 @@ export default { methods: { handleReset () { this.$emit('reset') - this.localSelectedColumnIds = [...DEFAULT_COLUMNS] }, showModal () { this.$refs['column-select-modal'].show() diff --git a/app/frontend/src/wells/store/index.js b/app/frontend/src/wells/store/index.js index c4e47a8d30..953f67994c 100644 --- a/app/frontend/src/wells/store/index.js +++ b/app/frontend/src/wells/store/index.js @@ -239,6 +239,9 @@ const wellsStore = { if (state.pendingSearch !== null) { state.pendingSearch.cancel() } + if(!localStorage.getItem('userColumnPreferences')){ + commit(SET_SEARCH_RESULT_COLUMNS, DEFAULT_COLUMNS) + } commit(SET_PENDING_LOCATION_SEARCH, null) commit(SET_HAS_SEARCHED, false) @@ -253,7 +256,6 @@ const wellsStore = { commit(SET_SEARCH_RESULTS, null) commit(SET_SEARCH_RESULT_COUNT, 0) commit(SET_LOCATION_SEARCH_RESULTS, []) - commit(SET_SEARCH_RESULT_COLUMNS, DEFAULT_COLUMNS) commit(SET_SEARCH_RESULT_FILTERS, {}) commit(SET_SEARCH_MAP_CENTRE, null) commit(SET_SEARCH_MAP_ZOOM, null)