Skip to content

Commit eeb926b

Browse files
committed
fix: Consistent default and working persistence
1 parent 3eefe6b commit eeb926b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

web/app/src/views/EndpointDetails.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ const events = ref([])
225225
const currentPage = ref(1)
226226
const resultPageSize = 50
227227
const showResponseTimeChartAndBadges = ref(false)
228-
const showAverageResponseTime = ref(localStorage.getItem('gatus:show-average-response-time') === 'true' || false)
228+
const showAverageResponseTime = ref(localStorage.getItem('gatus:show-average-response-time') !== 'false')
229229
const selectedChartDuration = ref('24h')
230230
const isRefreshing = ref(false)
231231

web/app/src/views/Home.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ const itemsPerPage = 96
220220
const searchQuery = ref('')
221221
const showOnlyFailing = ref(false)
222222
const showRecentFailures = ref(false)
223-
const showAverageResponseTime = ref(localStorage.getItem('gatus:show-average-response-time') === 'true' || true)
223+
const showAverageResponseTime = ref(localStorage.getItem('gatus:show-average-response-time') !== 'false')
224224
const groupByGroup = ref(false)
225225
const sortBy = ref(localStorage.getItem('gatus:sort-by') || 'name')
226226
const uncollapsedGroups = ref(new Set())

0 commit comments

Comments
 (0)