Skip to content

Commit

Permalink
Fixed bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
0x7B5 committed Jun 25, 2024
1 parent 5e64d38 commit ae3a683
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/actions/history.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const onHistoryMiddleware = ({ dispatch, getState }) => (next) => async (
}

if (pathSegmentRange !== state.segmentRange) {
if (state.zoom.previous) {
if (state.zoom?.previous) {
dispatch(pushTimelineRange(pathSegmentRange?.log_id, state.zoom?.previous.start, state.zoom?.previous.end, false));
} else {
dispatch(pushTimelineRange(pathSegmentRange?.log_id, pathSegmentRange?.start, pathSegmentRange?.end, false));
Expand Down

0 comments on commit ae3a683

Please sign in to comment.