Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.
Go
fix(editor): use correct getMarkdown API for @tiptap/markdown (#217)
Bohan Jiangd8a8549c8a57
diff --git a/apps/web/components/common/rich-text-editor.tsx b/apps/web/components/common/rich-text-editor.tsxindex 447c42785c..8614471b00 100644--- a/apps/web/components/common/rich-text-editor.tsx+++ b/apps/web/components/common/rich-text-editor.tsx@@ -160,10 +160,10 @@ const RichTextEditor = forwardRef<RichTextEditorRef, RichTextEditorProps>(const onUpdateRef = useRef(onUpdate);const onSubmitRef = useRef(onSubmit);- // Helper to get markdown from tiptap-markdown storage+ // Helper to get markdown from @tiptap/markdown extension// eslint-disable-next-line @typescript-eslint/no-explicit-anyconst getEditorMarkdown = (ed: any): string =>- ed?.storage?.markdown?.getMarkdown?.() ?? "";+ ed?.getMarkdown?.() ?? "";// Keep refs in sync without recreating editoronUpdateRef.current = onUpdate;diff --git a/apps/web/features/issues/hooks/use-issue-timeline.ts b/apps/web/features/issues/hooks/use-issue-timeline.tsindex 98530d9a87..de211e0e53 100644--- a/apps/web/features/issues/hooks/use-issue-timeline.ts+++ b/apps/web/features/issues/hooks/use-issue-timeline.ts@@ -202,7 +202,7 @@ export function useIssueTimeline(issueId: string, userId?: string) {setSubmitting(false);}},- [issueId, userId, submitting],+ [issueId, userId],);const submitReply = useCallback(