Skip to content

Commit

Permalink
chore: Update checklistColumns.tsx to fix cell rendering (#1125)
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwardBrunton authored Sep 13, 2024
1 parent bab6a4f commit 1c8bb70
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions libs/pipingsidesheet/src/lib/ui-sidesheet/checklistColumns.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import {
BaseStatus,
StatusCircle,
StyledMonospace,
statusColorMap,
LinkCell
LinkCell,
} from '@cc-components/shared';
import { ColDef, ICellRendererProps } from '@equinor/workspace-ag-grid';
import { Checklist } from '@cc-components/pipingshared';
Expand All @@ -13,18 +12,22 @@ export const checklistColumns: ColDef<Checklist>[] = [
headerName: 'Tag No',
valueGetter: (item) => item.data?.tagNo,
cellRenderer: (props: ICellRendererProps<Checklist>) => {
return <LinkCell url={props.data?.tagUrl ?? ''} urlText={props.value ?? ''} />
return <LinkCell url={props.data?.tagUrl ?? ''} urlText={props.value ?? ''} />;
},
},
{
headerName: 'Revision',
valueGetter: (item) => item.data?.revision,
cellRenderer: (props: ICellRendererProps<Checklist>) => {
return props.data?.revision ?? '';
},
},
{
headerName: 'Formular type',
valueGetter: (item) => item.data?.formularType,
cellRenderer: (props: ICellRendererProps<Checklist>) => {
return <LinkCell url={props.data?.checklistUrl ?? ''} urlText={props.value ?? ''} />
return (
<LinkCell url={props.data?.checklistUrl ?? ''} urlText={props.value ?? ''} />
);
},
},
{
Expand Down

0 comments on commit 1c8bb70

Please sign in to comment.