fix ui no decimals for zoom requests (#2016)

This commit is contained in:
Delirium 2024-03-29 17:21:47 +01:00 committed by GitHub
parent db059f2a1e
commit 3ba797f6c6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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'>) => {