ui: setFilter: note error-ignoring behaviour

This commit is contained in:
Simon Michael 2021-04-12 12:06:11 -10:00
parent b13df845c0
commit dbe7ef0157

View File

@ -238,7 +238,7 @@ setFilter :: String -> UIState -> UIState
setFilter s ui@UIState{aopts=uopts@UIOpts{cliopts_=copts@CliOpts{reportspec_=rspec}}} =
ui{aopts=uopts{cliopts_=copts{reportspec_=update rspec}}}
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
-- | Reset some filters & toggles.