From 89b8dea444011d1363f63ba6a84d05f0bda76f39 Mon Sep 17 00:00:00 2001 From: Mehmet Fatih Ercik Date: Tue, 6 Aug 2024 20:05:54 +0200 Subject: [PATCH] make default selection to 5 minute (#103) --- frontend/src/features/selections/selectionsSlice.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/features/selections/selectionsSlice.ts b/frontend/src/features/selections/selectionsSlice.ts index d248d73..1dc93e0 100644 --- a/frontend/src/features/selections/selectionsSlice.ts +++ b/frontend/src/features/selections/selectionsSlice.ts @@ -18,7 +18,7 @@ const initialState: Selections = { infoIsOpen: false, deleteRequestAlertIsOpen: false, requestIsOpen: false, - dateTimeRange: {start: Date.now() - 24*3600*1000, end: Date.now()} + dateTimeRange: {start: Date.now() - 5*60*1000, end: Date.now()} // last 5 minute }; const slice = createSlice({ name: 'selections', @@ -73,4 +73,4 @@ export const { selectRequest, setDateTimeRange } = slice.actions; -export default slice.reducer; \ No newline at end of file +export default slice.reducer;