Sfoglia il codice sorgente

remove unnecessary code

Shun Miyazawa 2 anni fa
parent
commit
4f34f95379
1 ha cambiato i file con 0 aggiunte e 4 eliminazioni
  1. 0 4
      apps/app/src/components/PageEditor/PageEditor.tsx

+ 0 - 4
apps/app/src/components/PageEditor/PageEditor.tsx

@@ -156,10 +156,6 @@ export const PageEditor = React.memo((props: Props): JSX.Element => {
     setMarkdownToPreview(value);
   })), []);
 
-  useEffect(() => {
-    setMarkdownToPreview(initialValue);
-  }, [initialValue]);
-
   const markdownChangedHandler = useCallback((value: string) => {
     setMarkdownPreviewWithDebounce(value);
   }, [setMarkdownPreviewWithDebounce]);