From 9822e68c55c28eb818684dbe0e8dac015530d08e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=9F=E6=9C=88?= Date: Fri, 15 May 2026 08:25:39 +0800 Subject: [PATCH] chore(dashboard): remove unused _parentRequired param from flattenSchema --- .../src/components/workflow-detail.tsx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/packages/workflow-dashboard/src/components/workflow-detail.tsx b/packages/workflow-dashboard/src/components/workflow-detail.tsx index 0a58779..f6cbba8 100644 --- a/packages/workflow-dashboard/src/components/workflow-detail.tsx +++ b/packages/workflow-dashboard/src/components/workflow-detail.tsx @@ -43,7 +43,6 @@ function flattenSchema( depth: number, parentPrefix: string, keyPrefix: string, - _parentRequired: Set, ): SchemaRow[] { const rows: SchemaRow[] = []; @@ -122,20 +121,20 @@ function flattenProperty( if (prop.type === "object" && prop.properties !== undefined) { const childPrefix = depth > 0 ? `${parentPrefix} ` : " "; - rows.push(...flattenSchema(prop as Record, depth + 1, childPrefix, `${keyPrefix}${name}-`, required)); + rows.push(...flattenSchema(prop as Record, depth + 1, childPrefix, `${keyPrefix}${name}-`)); } if (prop.type === "array") { const items = prop.items as Record | undefined; if (items !== undefined && items.type === "object" && items.properties !== undefined) { const childPrefix = depth > 0 ? `${parentPrefix} ` : " "; - rows.push(...flattenSchema(items, depth + 1, childPrefix, `${keyPrefix}${name}-`, new Set())); + rows.push(...flattenSchema(items, depth + 1, childPrefix, `${keyPrefix}${name}-`)); } } if (hasOneOf) { const childPrefix = depth > 0 ? `${parentPrefix} ` : " "; - rows.push(...flattenSchema(prop as Record, depth + 1, childPrefix, `${keyPrefix}${name}-`, required)); + rows.push(...flattenSchema(prop as Record, depth + 1, childPrefix, `${keyPrefix}${name}-`)); } return rows; @@ -150,7 +149,7 @@ function RoleCard({ roleName: string; role: WorkflowRoleDescriptor; }) { - const rows = flattenSchema(role.schema, 0, "", `${roleName}-`, new Set()); + const rows = flattenSchema(role.schema, 0, "", `${roleName}-`); return (