Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wip Fix(investigation) redirect back to landing on refresh #144

Closed
wants to merge 2 commits into from

Conversation

sandymash
Copy link
Contributor

@sandymash sandymash commented Sep 13, 2020

  • changed flow so epi number is taken from history.state and not redux
    current behaviour- refresh throws error and redirects to '/'
    fixed behaviour- refresh does nothing, new or direct access through address bar still throes error

TODO

  • add tests
  • add types

@github-actions github-actions bot added the client Front end code label Sep 13, 2020
@sandymash sandymash linked an issue Sep 15, 2020 that may be closed by this pull request
import { setInvestigatedPatientId } from 'redux/Investigation/investigationActionCreators';

import { usePersoanlInfoTabParameters, usePersonalInfoTabOutcome } from './PersonalInfoTabInterfaces';
import SubOccupationsSelectOccupations from 'models/enums/SubOccupationsSelectOccupations';
import {useHistory} from "react-router";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use ' insstead of "

@sandymash sandymash closed this Oct 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client Front end code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

App forces reroute on refresh
2 participants