Merge branch '17782-react-scripts-ts-migration' into main. Closes #17782
[arvados-workbench2.git] / src / components / refresh-button / refresh-button.tsx
index f34a0213259a79f62950b9a5e0b1108b0644252d..f2c41d28f63769a74f45bfa38f2867d93a2dfefa 100644 (file)
@@ -3,11 +3,11 @@
 //
 // SPDX-License-Identifier: AGPL-3.0
 
-import * as React from 'react';
-import * as classNames from 'classnames';
+import React from 'react';
+import classNames from 'classnames';
 import { withRouter, RouteComponentProps } from 'react-router';
 import { StyleRulesCallback, Button, WithStyles, withStyles } from "@material-ui/core";
-import { ReRunProcessIcon } from '~/components/icon/icon';
+import { ReRunProcessIcon } from 'components/icon/icon';
 
 type CssRules = 'button' | 'buttonRight';
 
@@ -28,7 +28,7 @@ export const RefreshButton = ({ history, classes }: RouteComponentProps & WithSt
         size="small"
         variant="contained"
         onClick={() => {
-            history.push(window.location.pathname);
+            history.replace(window.location.pathname);
         }}
         className={classNames(classes.buttonRight, classes.button)}>
         <ReRunProcessIcon />