[ARVADOS-WORKBENCH2] updated: 1.4.1-395-gcbaeb9da
Git user
git at public.arvados.org
Wed Jul 29 17:19:40 UTC 2020
Summary of changes:
src/components/refresh-button/refresh-button.test.tsx | 4 ++--
src/components/refresh-button/refresh-button.tsx | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
via cbaeb9dabcb7fcaa33281ce026439874ebe12a9a (commit)
from cdd2d0222b4a0d7d2b6e0cf27ca3951d7d89a8c1 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit cbaeb9dabcb7fcaa33281ce026439874ebe12a9a
Author: Daniel Kutyła <daniel.kutyla at contractors.roche.com>
Date: Wed Jul 29 19:18:38 2020 +0200
16627: Replaced push with replace for history
Arvados-DCO-1.1-Signed-off-by: Daniel Kutyła <daniel.kutyla at contractors.roche.com>
diff --git a/src/components/refresh-button/refresh-button.test.tsx b/src/components/refresh-button/refresh-button.test.tsx
index f6372e5c..fe7b609d 100644
--- a/src/components/refresh-button/refresh-button.test.tsx
+++ b/src/components/refresh-button/refresh-button.test.tsx
@@ -16,7 +16,7 @@ describe('<RefreshButton />', () => {
beforeEach(() => {
props = {
history: {
- push: jest.fn(),
+ replace: jest.fn(),
},
classes: {},
};
@@ -38,6 +38,6 @@ describe('<RefreshButton />', () => {
wrapper.find(Button).simulate('click');
// then
- expect(props.history.push).toHaveBeenCalledWith('/');
+ expect(props.history.replace).toHaveBeenCalledWith('/');
});
});
diff --git a/src/components/refresh-button/refresh-button.tsx b/src/components/refresh-button/refresh-button.tsx
index f34a0213..66bda99e 100644
--- a/src/components/refresh-button/refresh-button.tsx
+++ b/src/components/refresh-button/refresh-button.tsx
@@ -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 />
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list