From c42b78f2d2c5ba4b34ab00a46c73b3970f00eb1d Mon Sep 17 00:00:00 2001 From: JzoNg Date: Wed, 21 Jan 2026 14:19:09 +0800 Subject: [PATCH] fix: lint err --- .../human-input/components/form-content-preview.tsx | 9 +++++---- web/eslint-suppressions.json | 5 ----- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/web/app/components/workflow/nodes/human-input/components/form-content-preview.tsx b/web/app/components/workflow/nodes/human-input/components/form-content-preview.tsx index 2bdeb7842c..2509ef07a4 100644 --- a/web/app/components/workflow/nodes/human-input/components/form-content-preview.tsx +++ b/web/app/components/workflow/nodes/human-input/components/form-content-preview.tsx @@ -1,6 +1,7 @@ 'use client' import type { FC } from 'react' import type { FormInputItem, UserAction } from '../types' +import type { ButtonProps } from '@/app/components/base/button' import { RiCloseLine } from '@remixicon/react' import * as React from 'react' import { useTranslation } from 'react-i18next' @@ -46,10 +47,10 @@ const FormContentPreview: FC = ({ content={content} rehypePlugins={[rehypeVariable, rehypeNotes]} customComponents={{ - variable: ({ node }: any) => ( + variable: ({ node }: { node: { properties?: { [key: string]: string } } }) => ( ), - section: ({ node }: any) => (() => { + section: ({ node }: { node: { properties?: { [key: string]: string } } }) => (() => { const name = node.properties?.['data-name'] as string const input = formInputs.find(i => i.output_variable_name === name) if (!input) { @@ -68,10 +69,10 @@ const FormContentPreview: FC = ({ }} />
- {userActions.map((action: any) => ( + {userActions.map((action: UserAction) => ( diff --git a/web/eslint-suppressions.json b/web/eslint-suppressions.json index 03d3424830..6598c79a43 100644 --- a/web/eslint-suppressions.json +++ b/web/eslint-suppressions.json @@ -3407,11 +3407,6 @@ "count": 2 } }, - "app/components/workflow/nodes/human-input/components/form-content-preview.tsx": { - "ts/no-explicit-any": { - "count": 4 - } - }, "app/components/workflow/nodes/human-input/components/form-content.tsx": { "react-hooks-extra/no-direct-set-state-in-use-effect": { "count": 1