Skip to content

Commit

Permalink
fixed problem with TaskAnalysisTable columns where inverting a column…
Browse files Browse the repository at this point in the history
… filter would throw an error (#2264)
  • Loading branch information
AndrewPhilbin authored Feb 13, 2024
1 parent ca1f85d commit 9632b49
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ export const WithFilterCriteria = function(WrappedComponent, ignoreURL = true,

invertField = (fieldName) => {
const criteria = _cloneDeep(this.state.criteria)
criteria.invertFields = criteria.invertFields || {}
criteria.invertFields[fieldName] = !criteria.invertFields[fieldName]
this.setState({criteria})
if (this.props.setSearchFilters) {
Expand Down

0 comments on commit 9632b49

Please sign in to comment.