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.value,
|
||||
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,
|
||||
},
|
||||
comment: comment.value,
|
||||
|
|
Loading…
Reference in New Issue