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/context-block/context-block-replacement-block.tsx | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/app/components/base/prompt-editor/plugins/context-block/context-block-replacement-block.tsx b/app/components/base/prompt-editor/plugins/context-block/context-block-replacement-block.tsx index 7d96827..9d44a40 100644 --- a/app/components/base/prompt-editor/plugins/context-block/context-block-replacement-block.tsx +++ b/app/components/base/prompt-editor/plugins/context-block/context-block-replacement-block.tsx @@ -14,13 +14,12 @@ ContextBlockNode, } from '../context-block/node' import { CustomTextNode } from '../custom-text/node' -import { noop } from 'lodash-es' const REGEX = new RegExp(CONTEXT_PLACEHOLDER_TEXT) const ContextBlockReplacementBlock = ({ datasets = [], - onAddContext = noop, + onAddContext = () => {}, onInsert, canNotAddContext, }: ContextBlockType) => { -- Gitblit v1.8.0