Skip to content

Commit 215b881

Browse files
VasiliyTrueVasiliy Trushin
andauthored
fix route (#1770)
Co-authored-by: Vasiliy Trushin <[email protected]>
1 parent 87c20e7 commit 215b881

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

statshouse-ui/src/admin/pages/FormPage.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,9 @@ export function FormPage(props: { yAxisSize: number; adminMode: boolean }) {
8181
}, [metricName]);
8282

8383
const handleShowHistory = () => {
84-
navigate('history');
84+
if (!isHistoryRoute) {
85+
navigate('history');
86+
}
8587
};
8688

8789
const handleShowEdit = () => {

0 commit comments

Comments
 (0)