Commit c6d915b8 authored by mvdbeek's avatar mvdbeek
Browse files

Parse length to integer

When using the little up/down button we get strings instead of integers,
and those fail the rule validation. Fixes https://github.com/galaxyproject/galaxy/issues/6800
parent 9bc37c03
......@@ -297,7 +297,7 @@ const RULES = {
},
save: (component, rule) => {
rule.target_column = component.addColumnSubstrTarget;
rule.length = component.addColumnSubstrLength;
rule.length = parseInt(component.addColumnSubstrLength);
rule.substr_type = component.addColumnSubstrType;
},
apply: (rule, data, sources, columns) => {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment