张延森 пре 3 година
родитељ
комит
c64c88b056
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2
    2
      src/components/rich-editor/index.jsx

+ 2
- 2
src/components/rich-editor/index.jsx Прегледај датотеку

@@ -26,12 +26,12 @@ export default (props) => {
26 26
 
27 27
   useEffect(() => {
28 28
     if (editorRef.current && !initedRef.current) {
29
-      if (props.initd) {
29
+      if (props.inited) {
30 30
         initedRef.current = true
31 31
         editorRef.current.setContent(props.value)
32 32
       }
33 33
     }
34
-  }, [props.value, props.initd])
34
+  }, [props.value, props.inited])
35 35
 
36 36
   return (
37 37
     <textarea id={id} />