We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8af57e1 commit dfc11b0Copy full SHA for dfc11b0
source/views/sis/course-search/results.js
@@ -71,14 +71,16 @@ class CourseSearchResultsView extends React.Component<Props, State> {
71
72
state = {
73
isSearchbarActive: false,
74
- filtersLoaded: false,
+ filtersLoaded: Boolean(this.props.navigation.state.params.initialFilters),
75
filters: this.props.navigation.state.params.initialFilters || [],
76
typedQuery: this.props.navigation.state.params.initialQuery || '',
77
searchQuery: this.props.navigation.state.params.initialQuery || '',
78
}
79
80
componentDidMount() {
81
- this.resetFilters()
+ if (!this.state.filters.length) {
82
+ this.resetFilters()
83
+ }
84
85
86
handleSearchSubmit = () => {
0 commit comments