Fixed timestamp fields not defaulting to 0.

This commit is contained in:
DebaucheryLibrarian 2024-10-06 23:42:43 +02:00
parent a9e610a82c
commit 11fddcdac9
1 changed files with 1 additions and 1 deletions

View File

@ -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,