From d87d57ab3c83600c828f5ff7ee1174217ce19718 Mon Sep 17 00:00:00 2001 From: Bonchellon Date: Fri, 6 Feb 2026 02:36:02 +0300 Subject: [PATCH] 123 --- apps/web/src/components/editor/course-editor.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/components/editor/course-editor.tsx b/apps/web/src/components/editor/course-editor.tsx index 6ccc5dd..6abaf65 100644 --- a/apps/web/src/components/editor/course-editor.tsx +++ b/apps/web/src/components/editor/course-editor.tsx @@ -94,7 +94,7 @@ export function CourseEditor({ content, onChange }: CourseEditorProps) { if (!editorRef.current) return; const mermaidNodes = editorRef.current.querySelectorAll('pre[data-language="mermaid"]'); if (mermaidNodes.length === 0) return; - mermaid.run({ nodes: Array.from(mermaidNodes), suppressErrors: true }).catch(() => {}); + mermaid.run({ nodes: Array.from(mermaidNodes) as HTMLElement[], suppressErrors: true }).catch(() => {}); }, [content]); const setLink = useCallback(() => {