fix(tags): tag modification in triggered alerts page (#3873)

Co-authored-by: Yunus M <myounis.ar@live.com>
This commit is contained in:
Joe Milton 2023-11-09 20:16:05 +05:30 committed by GitHub
parent d165f727ac
commit f939d41acd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,8 @@
/* eslint-disable react/display-name */
import { Tag, Typography } from 'antd';
import { Typography } from 'antd';
import { ColumnsType } from 'antd/lib/table';
import { ResizeTable } from 'components/ResizeTable';
import LabelColumn from 'components/TableRenderer/LabelColumn';
import AlertStatus from 'container/TriggeredAlerts/TableComponents/AlertStatus';
import convertDateToAmAndPm from 'lib/convertDateToAmAndPm';
import getFormattedDate from 'lib/getFormatedDate';
@ -54,11 +55,7 @@ function NoFilterTable({
}
return (
<>
{withOutSeverityKeys.map((e) => (
<Tag key={e} color="magenta">{`${e} : ${labels[e]}`}</Tag>
))}
</>
<LabelColumn labels={withOutSeverityKeys} value={labels} color="magenta" />
);
},
},