fix(markdown-blocks/form): improve formatting of initialValues assignment for better readability

pull/21922/head
mizoo-snow21 11 months ago
parent 9feeb82ba8
commit 2882423ed3

@ -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
}

Loading…
Cancel
Save