Fixed timestamp fields not defaulting to 0.
This commit is contained in:
parent
a9e610a82c
commit
11fddcdac9
|
@ -315,7 +315,7 @@ async function submit() {
|
||||||
edits: {
|
edits: {
|
||||||
...edits.value,
|
...edits.value,
|
||||||
duration: edits.value.duration
|
duration: edits.value.duration
|
||||||
? (edits.value.duration[0] * 3600) + (edits.value.duration[1] * 60) + (edits.value.duration[2])
|
? (((edits.value.duration[0] || 0) * 3600) + ((edits.value.duration[1] || 0) * 60) + (edits.value.duration[2] || 0)) || null
|
||||||
: undefined,
|
: undefined,
|
||||||
},
|
},
|
||||||
comment: comment.value,
|
comment: comment.value,
|
||||||
|
|
Loading…
Reference in New Issue