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/history-block/history-block-replacement-block.tsx | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/app/components/base/prompt-editor/plugins/history-block/history-block-replacement-block.tsx b/app/components/base/prompt-editor/plugins/history-block/history-block-replacement-block.tsx index 7845903..04aa0cb 100644 --- a/app/components/base/prompt-editor/plugins/history-block/history-block-replacement-block.tsx +++ b/app/components/base/prompt-editor/plugins/history-block/history-block-replacement-block.tsx @@ -13,13 +13,12 @@ HistoryBlockNode, } from '../history-block/node' import { CustomTextNode } from '../custom-text/node' -import { noop } from 'lodash-es' const REGEX = new RegExp(HISTORY_PLACEHOLDER_TEXT) const HistoryBlockReplacementBlock = ({ history = { user: '', assistant: '' }, - onEditRole = noop, + onEditRole = () => {}, onInsert, }: HistoryBlockType) => { const [editor] = useLexicalComposerContext() -- Gitblit v1.8.0