Skip to content

Commit

Permalink
[frontend] fix missing field valid_until in indicators list (#8520)
Browse files Browse the repository at this point in the history
  • Loading branch information
labo-flg committed Sep 27, 2024
1 parent f31ec39 commit 4cb6e91
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -900,6 +900,13 @@ const defaultColumns: DataTableProps['dataColumns'] = {
return (<Tooltip title={file?.metaData?.mimetype}><>{b(file?.size)}</></Tooltip>);
},
},
valid_until: {
id: 'valid_until',
label: 'Valid until',
percentWidth: 10,
isSortable: true,
render: ({ valid_until }, { nsdt }) => <Tooltip title={nsdt(valid_until)}>{nsdt(valid_until)}</Tooltip>,
},
};

export const defaultColumnsMap = new Map<string, Partial<DataTableColumn>>(Object.entries(defaultColumns));
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,7 @@ const Indicators = () => {
percentWidth: 10,
render: ({ created }, { nsdt }) => <Tooltip title={nsdt(created)}>{nsdt(created)}</Tooltip>,
},
valid_until: {
label: 'Valid until',
percentWidth: 10,
isSortable: true,
},
valid_until: { },
objectMarking: {
percentWidth: 10,
isSortable: isRuntimeSort ?? false,
Expand Down

0 comments on commit 4cb6e91

Please sign in to comment.