fix(playground): convert fieldType number to string for json unmarshalling

This commit is contained in:
Martin Richardson
2025-05-07 17:54:42 +01:00
committed by Richard Palethorpe
parent fb1ab70650
commit 0e4e60cc15

View File

@@ -118,7 +118,7 @@ function ActionsPlayground() {
if (fieldType === 'checkbox') { if (fieldType === 'checkbox') {
value = e.target.checked; value = e.target.checked;
} else if (fieldType === 'number') { } else if (fieldType === 'number') {
value = e.target.value === '' ? '' : Number(e.target.value); value = e.target.value === '' ? '' : String(e.target.value);
} else { } else {
value = e.target.value; value = e.target.value;
} }