Skip to content

Commit

Permalink
Merge pull request #207 from InnopolisUni/fix_float_vals
Browse files Browse the repository at this point in the history
Added strings to float cast for values in dict
  • Loading branch information
BarzaH authored Sep 23, 2023
2 parents 074358a + 2018d15 commit 8535371
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dui/assets/dui.js
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,9 @@ function parseHtmlToDict(html_array){

let k = element.getElementsByClassName("keyfield")[0].value;
let v = element.getElementsByClassName("valuefield")[0].value;
if (!isNaN(Number(v))){
v = Number(v);
}

if (parent != null){
let new_dict = {};
Expand Down

0 comments on commit 8535371

Please sign in to comment.