Skip to content

Commit d80390d

Browse files
committed
prevent a crash in FilterView when no filters are passed
the old implementation did this, as well.
1 parent 1588aae commit d80390d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/views/components/filter/filter-view.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export class FilterView extends React.Component<Props, State> {
4242
}
4343

4444
static getDerivedStateFromProps(props: Props) {
45-
let {initialFilters: filters} = props.navigation.state.params
45+
let {initialFilters: filters = []} = props.navigation.state.params
4646
return {filters}
4747
}
4848

0 commit comments

Comments
 (0)