Skip to content

Commit

Permalink
smaller diff
Browse files Browse the repository at this point in the history
  • Loading branch information
sid-kap committed Feb 12, 2024
1 parent fbf0bad commit 9a746f6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/PlotsTemplate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,9 @@ export default function PlotsTemplate({
jsonRoot: string
countyList?: JSX.Element
}): JSX.Element {
const url = selected != null ? jsonRoot + selected.value + ".json" : null
const { data } = useFetch(url)
const { data } = useFetch(
selected != null ? jsonRoot + selected.value + ".json" : null
)

const { selectedUnits, unitsSelect } = useUnitsSelect()

Expand Down Expand Up @@ -85,7 +86,7 @@ export default function PlotsTemplate({
<DownloadData
data={data}
name={selected?.name + ".json"}
selected={url}
selected={selected?.name}
/>
</div>
</div>
Expand Down

0 comments on commit 9a746f6

Please sign in to comment.