From 3ba797f6c6b61925c5cbed3ffa87c39d2e0918d8 Mon Sep 17 00:00:00 2001 From: Delirium Date: Fri, 29 Mar 2024 17:21:47 +0100 Subject: [PATCH] fix ui no decimals for zoom requests (#2016) --- frontend/app/duck/components/player.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/app/duck/components/player.ts b/frontend/app/duck/components/player.ts index 417729aae..6be257b85 100644 --- a/frontend/app/duck/components/player.ts +++ b/frontend/app/duck/components/player.ts @@ -67,8 +67,8 @@ export const playerSlice = createSlice({ const { enabled, range } = action.payload; state.timelineZoom = { enabled, - startTs: range?.[0] || 0, - endTs: range?.[1] || 0, + startTs: Math.round(range?.[0] ?? 0), + endTs: Math.round(range?.[1] ?? 0), }; }, setZoomTab: (state, action: PayloadAction<'overview' | 'journey' | 'issues' | 'errors'>) => {