More fixes to studio, move error message to validation step, fix #1710

This commit is contained in:
Pieter Vander Vennet 2024-01-03 14:57:26 +01:00
parent 8b4544db04
commit 21563e4dc2
5 changed files with 49 additions and 22 deletions

View file

@ -158,7 +158,7 @@
}
}
if (schema.type === "number") {
if (v === "") {
if (v === "" || v === null || isNaN(Number(v))) {
return undefined
}
return Number(v)