Skip to content

Commit

Permalink
fix eqeq
Browse files Browse the repository at this point in the history
  • Loading branch information
HaneenT committed Sep 24, 2024
1 parent aaf4553 commit eb87121
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/SpatialViewer/viewConfigHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const populateViewConfig = async (viewConfig, selectedDataset) => {
relatedFiles.push(JSON.parse(item));
});
let ext = relatedFiles[0]['filename'].split('.').pop();
let dataUrl = (ext == "zarr")
let dataUrl = (ext === "zarr")
? getPublicFileLink(selectedDataset["packageid"], relatedFiles[0]['filename'])
: await getFileLink(relatedFiles[0]['packageid'] + "/" + relatedFiles[0]['filename']);
stringifiedConfig = stringifiedConfig.replace(/<DATA_FILE_URL>/gi, dataUrl);
Expand Down

0 comments on commit eb87121

Please sign in to comment.