mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-21 12:06:35 +08:00
fix: lint error
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import React, { useEffect, useRef } from 'react';
|
||||
import { useEditor, initDefaultContent } from '@/providers/editor-provider';
|
||||
import { useEditor } from '@/providers/editor-provider';
|
||||
|
||||
export const Editor = () => {
|
||||
const editorContainer = useRef<HTMLDivElement>(null);
|
||||
@@ -11,8 +11,6 @@ export const Editor = () => {
|
||||
ref.current = editor;
|
||||
|
||||
editorContainer.current?.appendChild(editor);
|
||||
|
||||
// initDefaultContent(editor);
|
||||
}
|
||||
}, [editor]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user