From 2882423ed327bc1fb4791e307864d160169cdea6 Mon Sep 17 00:00:00 2001 From: mizoo-snow21 Date: Sun, 6 Jul 2025 10:04:18 +0900 Subject: [PATCH] fix(markdown-blocks/form): improve formatting of initialValues assignment for better readability --- web/app/components/base/markdown-blocks/form.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/app/components/base/markdown-blocks/form.tsx b/web/app/components/base/markdown-blocks/form.tsx index fcd790157c..b71193d8f9 100644 --- a/web/app/components/base/markdown-blocks/form.tsx +++ b/web/app/components/base/markdown-blocks/form.tsx @@ -39,8 +39,8 @@ const MarkdownForm = ({ node }: any) => { const initialValues: { [key: string]: any } = {} node.children.forEach((child: any) => { if ([SUPPORTED_TAGS.INPUT, SUPPORTED_TAGS.TEXTAREA].includes(child.tagName)) { - initialValues[child.properties.name] = - (child.tagName === SUPPORTED_TAGS.INPUT && child.properties.type === SUPPORTED_TYPES.HIDDEN) + initialValues[child.properties.name] + = (child.tagName === SUPPORTED_TAGS.INPUT && child.properties.type === SUPPORTED_TYPES.HIDDEN) ? (child.properties.value || '') : child.properties.value }