Skip to content

Commit

Permalink
Type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronPlave committed Dec 20, 2024
1 parent 6c12781 commit 7ace44e
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/utilities/timeline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1514,10 +1514,13 @@ export function getMatchingTypesForActivityLayerFilter(filter: ActivityLayerFilt
return types;
}

const staticTypeMap: Record<string, boolean> = (filter.static_types || []).reduce((acc, cur) => {
acc[cur] = true;
return acc;
}, {});
const staticTypeMap: Record<string, boolean> = (filter.static_types || []).reduce(
(acc: Record<string, boolean>, cur: string) => {
acc[cur] = true;
return acc;
},
{},
);

return types.filter(type => {
let included = false;
Expand Down

0 comments on commit 7ace44e

Please sign in to comment.