Blank submission makes no change

multichannel
HeNine 3 years ago
parent 6c9873ac60
commit 18613d05c9

@ -37,6 +37,7 @@ function fillLineInfo(line_json) {
async function submit() { async function submit() {
const new_transcription = document.getElementById("new_transcription").value; const new_transcription = document.getElementById("new_transcription").value;
const new_speakers = await Promise.all(document.getElementById("speaker_input").value const new_speakers = await Promise.all(document.getElementById("speaker_input").value
.trim()
.split(",") .split(",")
.filter(x => x !== "") .filter(x => x !== "")
.map(speaker_raw => speaker_raw.trim()) .map(speaker_raw => speaker_raw.trim())

Loading…
Cancel
Save