From a430284aa21e3ae1f0d5654e55b2ad2852519cc2 Mon Sep 17 00:00:00 2001 From: wwf <yearningwang@iqtogether.com> Date: 星期三, 04 六月 2025 15:17:49 +0800 Subject: [PATCH] 初始化 --- app/components/base/prompt-editor/plugins/workflow-variable-block/workflow-variable-block-replacement-block.tsx | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/app/components/base/prompt-editor/plugins/workflow-variable-block/workflow-variable-block-replacement-block.tsx b/app/components/base/prompt-editor/plugins/workflow-variable-block/workflow-variable-block-replacement-block.tsx index 288008b..0a80ecc 100644 --- a/app/components/base/prompt-editor/plugins/workflow-variable-block/workflow-variable-block-replacement-block.tsx +++ b/app/components/base/prompt-editor/plugins/workflow-variable-block/workflow-variable-block-replacement-block.tsx @@ -16,7 +16,6 @@ const WorkflowVariableBlockReplacementBlock = ({ workflowNodesMap, - getVarType, onInsert, }: WorkflowVariableBlockType) => { const [editor] = useLexicalComposerContext() @@ -31,8 +30,8 @@ onInsert() const nodePathString = textNode.getTextContent().slice(3, -3) - return $applyNodeReplacement($createWorkflowVariableBlockNode(nodePathString.split('.'), workflowNodesMap, getVarType)) - }, [onInsert, workflowNodesMap, getVarType]) + return $applyNodeReplacement($createWorkflowVariableBlockNode(nodePathString.split('.'), workflowNodesMap)) + }, [onInsert, workflowNodesMap]) const getMatch = useCallback((text: string) => { const matchArr = REGEX.exec(text) @@ -48,7 +47,7 @@ } }, []) - const transformListener = useCallback((textNode: CustomTextNode) => { + const transformListener = useCallback((textNode: any) => { resetReg() return decoratorTransform(textNode, getMatch, createWorkflowVariableBlockNode) }, [createWorkflowVariableBlockNode, getMatch]) -- Gitblit v1.8.0