Skip to content

Commit

Permalink
fix: downalod link broken page
Browse files Browse the repository at this point in the history
  • Loading branch information
AldemirLucas committed Aug 13, 2024
1 parent 565d389 commit f911362
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion next/components/molecules/DataInformationQuery.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ export default function DataInformationQuery({ resource }) {
setGcpTableId(resource.cloudTables[0]?.gcpTableId || "")
}

setDownloadUrl(`https://storage.googleapis.com/basedosdados-public/one-click-download/${resource.cloudTables[0]?.gcpDatasetId || ""}/${resource.cloudTables[0]?.gcpTableId || ""}/${resource.cloudTables[0]?.gcpTableId || ""}.csv.gz`)
setDownloadUrl(`https://storage.googleapis.com/basedosdados-public/one-click-download/${resource?.cloudTables?.[0]?.gcpDatasetId || ""}/${resource?.cloudTables?.[0]?.gcpTableId || ""}/${resource?.cloudTables?.[0]?.gcpTableId || ""}.csv.gz`)
}, [resource.numberRows, resource.cloudTables])

useEffect(() => {
Expand Down

0 comments on commit f911362

Please sign in to comment.