ui: setFilter: note error-ignoring behaviour
This commit is contained in:
		
							parent
							
								
									b13df845c0
								
							
						
					
					
						commit
						dbe7ef0157
					
				| @ -238,7 +238,7 @@ setFilter :: String -> UIState -> UIState | |||||||
| setFilter s ui@UIState{aopts=uopts@UIOpts{cliopts_=copts@CliOpts{reportspec_=rspec}}} = | setFilter s ui@UIState{aopts=uopts@UIOpts{cliopts_=copts@CliOpts{reportspec_=rspec}}} = | ||||||
|     ui{aopts=uopts{cliopts_=copts{reportspec_=update rspec}}} |     ui{aopts=uopts{cliopts_=copts{reportspec_=update rspec}}} | ||||||
|   where |   where | ||||||
|     update = either (const rspec) id . updateReportSpecWith (\ropts -> ropts{querystring_=querystring}) |     update = either (const rspec) id . updateReportSpecWith (\ropts -> ropts{querystring_=querystring})  -- XXX silently ignores an error | ||||||
|     querystring = words'' prefixes $ T.pack s |     querystring = words'' prefixes $ T.pack s | ||||||
| 
 | 
 | ||||||
| -- | Reset some filters & toggles. | -- | Reset some filters & toggles. | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user