From e1350c084d477a49712af7db26dcca7c44d7d2d5 Mon Sep 17 00:00:00 2001 From: Austin Chen Date: Thu, 15 Sep 2022 17:12:36 -0700 Subject: [PATCH] Overwrite name to prevent breakages --- web/components/editor/contract-mention.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/web/components/editor/contract-mention.tsx b/web/components/editor/contract-mention.tsx index 9e967044..ddc81bc0 100644 --- a/web/components/editor/contract-mention.tsx +++ b/web/components/editor/contract-mention.tsx @@ -31,6 +31,7 @@ const ContractMentionComponent = (props: any) => { * https://tiptap.dev/guide/node-views/react#render-a-react-component */ export const DisplayContractMention = Mention.extend({ + name: 'contract-mention', parseHTML: () => [{ tag: name }], renderHTML: ({ HTMLAttributes }) => [name, mergeAttributes(HTMLAttributes)], addNodeView: () =>