diff --git a/static/koboldai.js b/static/koboldai.js index af8b8909..5485c22e 100644 --- a/static/koboldai.js +++ b/static/koboldai.js @@ -2890,8 +2890,9 @@ function save_bias(item) { function sync_to_server(item) { //get value - value = null; - name = null; + let value = null; + let name = null; + if ((item.tagName.toLowerCase() === 'checkbox') || (item.tagName.toLowerCase() === 'input') || (item.tagName.toLowerCase() === 'select') || (item.tagName.toLowerCase() == 'textarea')) { if (item.getAttribute("type") == "checkbox") { value = item.checked;