🐛 Sørger for at feilmelding som blir sendt fra frontend matcher feilmeldingsobjekt i backend
Co-authored-by: Sindre Kjelsrud <sindre.kjelsrud@nav.no>
This commit is contained in:
		
							parent
							
								
									45f2815a7c
								
							
						
					
					
						commit
						7b0d3c3168
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -18,7 +18,9 @@ export default function Feil() { | |||
|         const payload = { | ||||
|             tittel: tittel, | ||||
|             beskrivelse: beskrivelse, | ||||
|             dato: new Date().toISOString().replace('Z', '') | ||||
|             dato: new Date().toISOString().replace('Z', ''), // Litt wack fix, burde endres
 | ||||
|             arbeidsstatus: 0, | ||||
|             haster: false | ||||
|         } | ||||
|          | ||||
|         axios.post("/api/nyfeil", payload, { | ||||
|  |  | |||
		Reference in a new issue
	
	 Amalie Mansåker
						Amalie Mansåker