From c18a988e56afcf3f4a7ef5291c8e5c6e52907607 Mon Sep 17 00:00:00 2001 From: Daryl Lim <5508348+daryllimyt@users.noreply.github.com> Date: Mon, 13 Jan 2025 19:44:04 +0800 Subject: [PATCH] Default to empty string for undefined form values --- frontend/src/components/workbench/panel/action-panel.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/workbench/panel/action-panel.tsx b/frontend/src/components/workbench/panel/action-panel.tsx index 172ec2856..e4ccbbea7 100644 --- a/frontend/src/components/workbench/panel/action-panel.tsx +++ b/frontend/src/components/workbench/panel/action-panel.tsx @@ -148,7 +148,7 @@ enum SaveState { const parseYaml = (str: string | undefined) => str ? YAML.parse(str) : undefined const stringifyYaml = (obj: unknown | undefined) => - obj ? YAML.stringify(obj) : undefined + obj ? YAML.stringify(obj) : "" export function ActionPanel({ actionId,