Skip to content

Commit

Permalink
fix default value
Browse files Browse the repository at this point in the history
  • Loading branch information
patrykkopycinski committed Oct 14, 2020
1 parent 97a9519 commit 7cc1f25
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[] | undefined) =>
filters ? filters.filter((f: Filter) => f.meta.controlledBy !== TIMELINE_FILTER_DROP_AREA) : filters;
const getNonDropAreaFilters = (filters: Filter[] = []) =>
filters.filter((f: Filter) => f.meta.controlledBy !== TIMELINE_FILTER_DROP_AREA);

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

0 comments on commit 7cc1f25

Please sign in to comment.