Skip to content

Commit

Permalink
Fix sample status showing warning icon when validationStatus is null
Browse files Browse the repository at this point in the history
  • Loading branch information
qu8n authored and ao508 committed Sep 11, 2024
1 parent 1b958cb commit 555055e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion frontend/src/shared/helpers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,11 @@ export const SampleMetadataDetailsColumns: ColDef[] = [
headerName: "Status",
cellRenderer: (params: ICellRendererParams) => {
if (params.data?.revisable) {
return params.data?.validationStatus ? <CheckIcon /> : <WarningIcon />;
return params.data?.validationStatus === false ? (
<WarningIcon />
) : (
<CheckIcon />
);
} else {
return <LoadingIcon />;
}
Expand Down

0 comments on commit 555055e

Please sign in to comment.