Skip to content

Commit

Permalink
Fix server errors due to missing vars
Browse files Browse the repository at this point in the history
  • Loading branch information
majakomel committed Nov 24, 2022
1 parent ddad910 commit 5dac6ab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions components/aggregation/mat/ChartHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ export const SubtitleStr = ({ query }) => {
const intl = useIntl()
const params = new Set()

const testName = intl.formatMessage({id: getRowLabel(query.test_name, 'test_name')})
params.add(testName)


if (query.test_name) {
const testName = intl.formatMessage({id: getRowLabel(query.test_name, 'test_name')})
params.add(testName)
}
if (query.domain) {
params.add(query.domain)
}
Expand Down
4 changes: 2 additions & 2 deletions components/aggregation/mat/RowChart.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ const RowChart = ({ data, indexBy, label, height, rowIndex /* width, first, last
const chartProps = useMemo(() => {
const xAxisTicks = getXAxisTicks(query)
chartProps1D.axisBottom.tickValues = xAxisTicks
chartProps1D.axisBottom.legend = intl.formatMessage(messages[`x_axis.${query.axis_x}`])
return label === undefined ? chartProps1D : chartProps2D
chartProps1D.axisBottom.legend = query.axis_x ? intl.formatMessage(messages[`x_axis.${query.axis_x}`]) : ''
return label === undefined ? chartProps1D : chartProps2D
}, [intl, label, query])

return (
Expand Down

1 comment on commit 5dac6ab

@vercel
Copy link

@vercel vercel bot commented on 5dac6ab Nov 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

explorer – ./

explorer-git-master-ooni1.vercel.app
explorer-ooni1.vercel.app
explorer-one.vercel.app

Please sign in to comment.