Skip to content

Commit

Permalink
EPMRPP-91149 || The duration of the item is not displayed on the Hist…
Browse files Browse the repository at this point in the history
…ory table on all levels. UI error occurs
  • Loading branch information
BlazarQSO committed May 27, 2024
1 parent 2bea490 commit edfd5c2
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ import styles from './itemInfoToolTip.scss';
const cx = classNames.bind(styles);

export const ItemInfoToolTip = ({ data }) => {
const { value: startTime, unit } = getRelativeUnits(data.startTime);
const start = new Date(data.startTime).getTime();
const end = new Date(data.endTime).getTime();
const { value: startTime, unit } = getRelativeUnits(start);

return (
<div className={cx('info-tooltip-wrapper')}>
<div className={cx('title-block')}>
Expand All @@ -36,8 +39,8 @@ export const ItemInfoToolTip = ({ data }) => {
<div className={cx('info-block')}>
<DurationBlock
timing={{
start: data.startTime,
end: data.endTime,
start,
end,
}}
/>
<span className={cx('separator')} />
Expand Down

0 comments on commit edfd5c2

Please sign in to comment.