(DashboardFilterKeys.RELEASE in location.query
? decodeList(location.query[DashboardFilterKeys.RELEASE])
: dashboardFilters?.[DashboardFilterKeys.RELEASE]) ?? []
I think the cause is quick-lint-js parsing location.query ? ... : ... as the right-hand side of in, rather than parsing DashboardFilterKeys.RELEASE in location.query as the condition for ? :.
quick-lint-js falsely diagnoses this code: https://github.com/getsentry/sentry/blob/5d08d3d6f625a7c3d9352edc0fbef641f2d9a768/static/app/views/dashboards/widgetBuilder/buildSteps/filterResultsStep/index.tsx#L136-L138
I think the cause is quick-lint-js parsing
location.query ? ... : ...
as the right-hand side ofin
, rather than parsingDashboardFilterKeys.RELEASE in location.query
as the condition for? :
.