From 0e4e60cc155cb5553e2dacf54b09738feb166973 Mon Sep 17 00:00:00 2001 From: Martin Richardson <11604705+martianmr@users.noreply.github.com> Date: Wed, 7 May 2025 17:54:42 +0100 Subject: [PATCH] fix(playground): convert fieldType number to string for json unmarshalling --- webui/react-ui/src/pages/ActionsPlayground.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webui/react-ui/src/pages/ActionsPlayground.jsx b/webui/react-ui/src/pages/ActionsPlayground.jsx index e5d16df..955b51c 100644 --- a/webui/react-ui/src/pages/ActionsPlayground.jsx +++ b/webui/react-ui/src/pages/ActionsPlayground.jsx @@ -118,7 +118,7 @@ function ActionsPlayground() { if (fieldType === 'checkbox') { value = e.target.checked; } else if (fieldType === 'number') { - value = e.target.value === '' ? '' : Number(e.target.value); + value = e.target.value === '' ? '' : String(e.target.value); } else { value = e.target.value; }