Skip to content

Commit

Permalink
fetch dataset fix - 2 (#3119)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom-Szendrey authored Mar 22, 2024
1 parent 977d05a commit b815773
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const setupDatasetInput = async (datasetId: string | undefined) => {
const limit = -1;

// We are assuming here there is only a single csv file. This may change in the future as the API allows for it.
if (dataset.metadata.format !== 'netcdf' || !dataset.esgfId) {
if (dataset.metadata?.format !== 'netcdf' || !dataset.esgfId) {
const csv = (await downloadRawFile(datasetId, filename, limit)) as CsvAsset;
// datasetValue.value = csvAsset.value?.csv.map((row) => row.join(',')).join('\n');

Expand Down

0 comments on commit b815773

Please sign in to comment.