wwf
3 天以前 a430284aa21e3ae1f0d5654e55b2ad2852519cc2
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) => {