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

BehandlingRoutes skal sende med behandling som props til alle faner i… #2844

Merged
merged 1 commit into from
Jul 26, 2024

Conversation

ViktorGSolberg
Copy link
Contributor

@ViktorGSolberg ViktorGSolberg commented Jul 26, 2024

…stedet for behandling-id. Dette er fordi alle faner har behov for hele behandling uansett.

Hvorfor er denne endringen nødvendig? ✨

De fleste fanene våre henter en behandling og da er det ikke noe poeng å kun sende med behandlingId som prop når behandlingen allerede er hentet. Gikk også over alle komponenter som fikk tilsendt både behandlingId og behandling som prop, og endret disse tilfellene til å kun sende med behandling.

Får gjort koden mer lesbar og fjernet noen linjer i samme slengen.

…stedet for behandling-id. Dette er fordi alle faner har behov for hele behandling uansett.
@ViktorGSolberg ViktorGSolberg requested a review from a team as a code owner July 26, 2024 07:39
Copy link

sonarcloud bot commented Jul 26, 2024

Copy link
Contributor

@throndi throndi left a comment

Choose a reason for hiding this comment

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

Fine forbedringer 👏

@ViktorGSolberg ViktorGSolberg merged commit c36a998 into main Jul 26, 2024
6 checks passed
@ViktorGSolberg ViktorGSolberg deleted the refaktorer-fanekomponenter branch July 26, 2024 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants