Skip to content

Commit

Permalink
fix: fix duplicate redirections by converting the timestamp to millis…
Browse files Browse the repository at this point in the history
…econds
  • Loading branch information
ahmadshaheer committed Dec 29, 2024
1 parent f7895db commit 3e487eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/container/MetricsApplication/Tabs/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export function onGraphClickHandler(
buttonElement.style.display = 'block';
buttonElement.style.left = `${mouseX}px`;
buttonElement.style.top = `${mouseY}px`;
setSelectedTimeStamp(xValue);
setSelectedTimeStamp(Math.floor(xValue * 1_000));
}
} else if (buttonElement && buttonElement.style.display === 'block') {
buttonElement.style.display = 'none';
Expand Down

0 comments on commit 3e487eb

Please sign in to comment.