-
Notifications
You must be signed in to change notification settings - Fork 0
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
Feature/blokker sletting nar loading #343
Conversation
… opp og lagt til feilmelding
… opp og lagt til feilmelding
… opp og lagt til feilmelding
… opp og lagt til feilmelding
…ort feilmelding, og fikset feil hvis validering feiler på filstørrelse
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sjekk hvordan vi kan legge på testdekning på dette
components/Fil.tsx
Outdated
@@ -127,6 +127,7 @@ export interface FilProps { | |||
lokalFil?: File; | |||
opplastetFil?: OpplastetFil; | |||
filListeDispatch: React.Dispatch<ActionType>; | |||
lasterOppStateDispoatch: React.Dispatch<number>; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: Dispoatch
axios | ||
.delete(`${publicRuntimeConfig.apiUrl}/frontend/v1/soknad/${soknad.innsendingsId}/vedlegg/${vedleggsId}`) | ||
|
||
const slettAnnetVedlegg = async (harAktiveEndringer: boolean, vedleggsId: number) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
flytt harAktiveEndringer param etter vedleggsId
const slettAnnetVedlegg = async (harAktiveEndringer: boolean, vedleggsId: number) => { | ||
if (harAktiveEndringer) return; | ||
|
||
await nyLagringsProsess( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prøv uten await og async
No description provided.