🐛 Sørger for at url og payload er riktig
This commit is contained in:
parent
75212e1f47
commit
5cf530f620
1 changed files with 4 additions and 1 deletions
|
@ -26,9 +26,12 @@ const RedigeringsVerktoy = (props: redigeringsInterface) => {
|
||||||
dato: props.dato.toISOString().replace('Z', ''),
|
dato: props.dato.toISOString().replace('Z', ''),
|
||||||
arbeidsstatus: arbeidsstatus,
|
arbeidsstatus: arbeidsstatus,
|
||||||
haster: haster,
|
haster: haster,
|
||||||
|
kommentar: props.kommentar ? props.kommentar : null
|
||||||
}
|
}
|
||||||
|
|
||||||
await axios.put(`/api/oppdaterfeil/`, payload, {
|
console.log(payload)
|
||||||
|
|
||||||
|
await axios.put(`/api/oppdaterfeil`, payload, {
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json'
|
'Content-Type': 'application/json'
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue