Skip to content

Commit

Permalink
Update index.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
patrykkopycinski authored Oct 13, 2020
1 parent 4b72993 commit 97a9519
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ export interface QueryBarTimelineComponentProps {

export const TIMELINE_FILTER_DROP_AREA = 'timeline-filter-drop-area';

const getNonDropAreaFilters = (filters: Filter[]) =>
filters.filter((f: Filter) => f.meta.controlledBy !== TIMELINE_FILTER_DROP_AREA);
const getNonDropAreaFilters = (filters: Filter[] | undefined) =>
filters ? filters.filter((f: Filter) => f.meta.controlledBy !== TIMELINE_FILTER_DROP_AREA) : filters;

export const QueryBarTimeline = memo<QueryBarTimelineComponentProps>(
({
Expand Down

0 comments on commit 97a9519

Please sign in to comment.