Skip to content

Commit

Permalink
bug/WP-287 Fix Invalid Url Redirect (#904)
Browse files Browse the repository at this point in the history
* remove extra get profile data call

* fix tests
  • Loading branch information
shayanaijaz authored Nov 20, 2023
1 parent d54517b commit 3f1471e
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,6 @@ const mockInitialState = {
results: {},
},
},
profile: {
data: {
demographics: {},
},
},
};
const Wrapper = ({ store, children }) => (
<Provider store={store}>{children}</Provider>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ describe('Allocations Table', () => {
<Provider
store={mockStore({
allocations: mockInitialState,
profile: { data: { demographics: { firstName: '', lastName: '' } } },
})}
>
<MemoryRouter initialEntries={['/workbench/allocations']}>
Expand Down Expand Up @@ -56,7 +55,6 @@ describe('Allocations Table', () => {
...mockInitialState,
errors: { listing: new Error('PC Load Letter') },
},
profile: { data: { demographics: { firstName: '', lastName: '' } } },
});
rerender(
<Provider store={storeWithError}>
Expand Down
1 change: 0 additions & 1 deletion client/src/components/Workbench/AppRouter.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ function AppRouter() {

useEffect(() => {
dispatch({ type: 'FETCH_AUTHENTICATED_USER' });
dispatch({ type: 'GET_PROFILE_DATA' });
dispatch({ type: 'FETCH_WORKBENCH' });
fetchSystems();
}, []);
Expand Down
1 change: 0 additions & 1 deletion client/src/components/Workbench/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ describe('AppRouter', () => {
renderComponent(<AppRouter />, store);
expect(store.getActions()).toEqual([
{ type: 'FETCH_AUTHENTICATED_USER' },
{ type: 'GET_PROFILE_DATA' },
{ type: 'FETCH_WORKBENCH' },
{ type: 'FETCH_SYSTEMS' },
{ type: 'FETCH_INTRO' },
Expand Down

0 comments on commit 3f1471e

Please sign in to comment.