Skip to content

Commit 030270b

Browse files
committed
front: fix #5709
1 parent 6e7fc8d commit 030270b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

front/src/common/IntervalsDataViz/dataviz.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { useState, useEffect, useRef } from 'react';
2-
import { head, last, maxBy, minBy } from 'lodash';
2+
import { head, isNil, last, maxBy, minBy } from 'lodash';
33
import cx from 'classnames';
44

55
import { AdditionalDataItem } from 'common/IntervalsEditor/types';
@@ -375,7 +375,7 @@ export const LinearMetadataDataviz = <T extends { [key: string]: any }>({
375375
<SimpleScale className="scale-y" begin={min} end={max} />
376376
)}
377377

378-
{hoverAtx && !draginStartAt && (
378+
{!isNil(hoverAtx) && !draginStartAt && (
379379
<div
380380
className="hover-x"
381381
style={{

0 commit comments

Comments
 (0)