Skip to content

Commit

Permalink
fix setValuesFromMetaJSON function for universalIndexSettingsWordLevel
Browse files Browse the repository at this point in the history
  • Loading branch information
do-me committed Mar 29, 2024
1 parent 4a9f512 commit b9bd0e2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -614,8 +614,6 @@ function setValuesFromMetaJSON(jsonObject) {
// Set values based on the provided JSON object
document.getElementById("model-name").value = jsonObject.modelName || "";
document.getElementById("quantized").checked = jsonObject.quantized;
document.getElementById("split-type").value = jsonObject.splitType || "";

document.getElementById("exportDecimals").value = jsonObject.exportDecimals || "";
document.getElementById("textTitle").value = jsonObject.textTitle || "";
document.getElementById("textAuthor").value = jsonObject.textAuthor || "";
Expand All @@ -628,8 +626,12 @@ function setValuesFromMetaJSON(jsonObject) {
document.getElementById("wordsToAvoidAny").value = jsonObject.wordsToAvoidAny || "";
document.getElementById("wordsToAvoidAll").value = jsonObject.wordsToAvoidAll || "";

updateSplitParam(jsonObject.splitType); // causing a bug, needs fix
document.getElementById("split-param").value = jsonObject.splitParam || "";
if (!getUrlParameters().has('universalIndexSettingsWordLevel')) {
document.getElementById("split-type").value = jsonObject.splitType || "";
updateSplitParam(jsonObject.splitType); // causing a bug, needs fix
document.getElementById("split-param").value = jsonObject.splitParam || "";
}

}


Expand Down

0 comments on commit b9bd0e2

Please sign in to comment.