diff --git a/public/scripts/utils.js b/public/scripts/utils.js index 647b81ce6..8f0ca59a7 100644 --- a/public/scripts/utils.js +++ b/public/scripts/utils.js @@ -45,9 +45,7 @@ export function convertValueType(value, type) { return value; } - type = type.trim().toLowerCase(); - - switch (type) { + switch (type.trim().toLowerCase()) { case 'string': case 'str': return String(value);