Fix problems with the Submit Anyway button when sheet data is changed

pull/240/head
ElementalAlchemist 3 years ago committed by Christopher Usher
parent 058d7b9355
commit 20518af627

@ -540,7 +540,7 @@ async function sendVideoData(edited, overrideChanges) {
editData.token = googleUser.getAuthResponse().id_token;
}
if (overrideChanges) {
editData.overrideChanges = true;
editData.override_changes = true;
}
const submitResponse = await fetch(`/thrimshim/${videoInfo.id}`, {
@ -564,7 +564,7 @@ async function sendVideoData(edited, overrideChanges) {
if (submitResponse.status === 409) {
const serverErrorNode = document.createTextNode(await submitResponse.text());
const submitButton = document.createElement("button");
submitButton.text = "Submit Anyway";
submitButton.innerText = "Submit Anyway";
submitButton.addEventListener("click", (_event) => {
sendVideoData(edited, true);
});

Loading…
Cancel
Save