Skip to content

insights: click in functionality associates incorrect `before` and `after` times

Created by: coury-clark

When clicking into an insight chart the before and after dates are getting swapped such that it is impossible to ever match any results:

Example result from a click in: https://sourcegraph.test:3443/search?q=repo:%5Egithub%5C.com/sourcegraph/sourcegraph%24++type:diff+after:2022-01-25T17:00:00-07:00+before:2021-12-25T17:00:00-07:00+func&patternType=literal