fix: Error Message is cut off in alerts & reports log page (#19444)

This commit is contained in:
Smart-Codi 2022-04-06 01:19:45 -04:00 committed by GitHub
parent 0363e55b81
commit 156ac7dd79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 10 additions and 0 deletions

View File

@ -22,6 +22,7 @@ import moment from 'moment';
import React, { useEffect, useMemo } from 'react';
import { Link, useParams } from 'react-router-dom';
import ListView from 'src/components/ListView';
import { Tooltip } from 'src/components/Tooltip';
import SubMenu from 'src/views/components/SubMenu';
import withToasts from 'src/components/MessageToasts/withToasts';
import { fDuration } from 'src/modules/dates';
@ -144,6 +145,15 @@ function ExecutionLog({ addDangerToast, isReportEnabled }: ExecutionLogProps) {
{
accessor: 'error_message',
Header: t('Error message'),
Cell: ({
row: {
original: { error_message = '' },
},
}: any) => (
<Tooltip title={error_message} placement="topLeft">
<span>{error_message}</span>
</Tooltip>
),
},
],
[isReportEnabled],