Skip to content

Commit

Permalink
Patched issue due to synchronous generation of file table (GSI-1161) (#…
Browse files Browse the repository at this point in the history
…251)

* Patched issue due to synchronous generation of file table.

* Upped version to 1.4.1
  • Loading branch information
ac-jorellanaf authored Nov 19, 2024
1 parent b538f8f commit 0719bf9
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 10 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "data-portal-ui",
"version": "1.4.0",
"version": "1.4.1",
"private": true,
"dependencies": {
"@fortawesome/fontawesome-svg-core": "~6.6.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ const SingleDatasetView = () => {

return (
<div className="py-2 py-sm-4 mx-auto px-2 px-sm-5">
{details === undefined ? (
{details === undefined || datasetFiles === undefined ? (
<div className="fs-5">
<Spinner animation="border" variant="primary" size="sm" />
&nbsp;Dataset details loading, please wait...
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,7 @@ const SingleDatasetViewAccordion = (props: SingleDatasetViewAccordionProps) => {
fileInfoMap.set(fileInfo.accession, fileInfo)
);
return files.map((file: any) => {
const fileInfo = fileInfoMap.get(file.accession) || {
size: 0,
sha256_hash: "",
storage_alias: "",
};
const fileInfo = fileInfoMap.get(file.accession);
return { ...file, ...fileInfo, file_category };
});
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const FilesTable = (props: FilesTableProps) => {
},
{
header: "File Size",
data: allFiles.map((x) => parseBytes(x.size)),
data: allFiles.map((x) => x.size),
cssClasses: "",
},
{
Expand Down

0 comments on commit 0719bf9

Please sign in to comment.