Skip to content

Commit

Permalink
[fix] Typescript 4.4 fixes (#2816)
Browse files Browse the repository at this point in the history
Signed-off-by: Ihor Dykhta <dikhta.igor@gmail.com>
  • Loading branch information
igorDykhta authored Dec 9, 2024
1 parent 2402896 commit 89411c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/reducers/src/vis-state-updaters.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3233,7 +3233,7 @@ export function layerFilteredItemsChangeUpdater<S extends VisState>(
export function syncTimeFilterWithLayerTimelineUpdater<S extends VisState>(
state: S,
action: VisStateActions.SyncTimeFilterWithLayerTimelineAction
) {
): S {
const {idx: filterIdx, enable = false} = action;

const filter = state.filters[filterIdx] as TimeRangeFilter;
Expand Down
2 changes: 1 addition & 1 deletion src/utils/src/time.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export function getIntervalByTicks(ticks, start, stop) {
// Otherwise, assume interval is already a time interval and use it.
if (typeof ticks === 'number') {
const target = Math.abs(stop - start) / ticks;
let i = bisector((d: TickInterval) => d.duration).right(tickIntervals, target);
const i = bisector((d: TickInterval) => d.duration).right(tickIntervals, target);
if (i === tickIntervals.length) {
step = tickStep(start / durationYear, stop / durationYear, ticks);
interval = 'year';
Expand Down

0 comments on commit 89411c8

Please sign in to comment.