wwf
2 天以前 a430284aa21e3ae1f0d5654e55b2ad2852519cc2
app/components/base/prompt-editor/plugins/context-block/node.tsx
@@ -5,7 +5,7 @@
export type SerializedNode = SerializedLexicalNode & { datasets: Dataset[]; onAddContext: () => void; canNotAddContext: boolean }
export class ContextBlockNode extends DecoratorNode<React.JSX.Element> {
export class ContextBlockNode extends DecoratorNode<JSX.Element> {
  __datasets: Dataset[]
  __onAddContext: () => void
  __canNotAddContext: boolean
@@ -40,7 +40,7 @@
    return false
  }
  decorate(): React.JSX.Element {
  decorate(): JSX.Element {
    return (
      <ContextBlockComponent
        nodeKey={this.getKey()}