调整健康风险分析时间轴重置按钮行为
This commit is contained in:
@@ -150,7 +150,6 @@ const Timeline: React.FC<TimelineProps> = ({
|
|||||||
|
|
||||||
const handleStop = useCallback(() => {
|
const handleStop = useCallback(() => {
|
||||||
setIsPlaying(false);
|
setIsPlaying(false);
|
||||||
setSelectedDateTime(getRoundedDate(new Date()));
|
|
||||||
if (intervalRef.current) {
|
if (intervalRef.current) {
|
||||||
clearInterval(intervalRef.current);
|
clearInterval(intervalRef.current);
|
||||||
intervalRef.current = null;
|
intervalRef.current = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user