Prechádzať zdrojové kódy

fix to call setindentSize

reiji-h 2 rokov pred
rodič
commit
d0e02e2e60

+ 1 - 1
apps/app/src/components/PageEditor/PageEditor.tsx

@@ -529,7 +529,7 @@ export const PageEditor = React.memo((props: Props): JSX.Element => {
 
   // Set indent size by current indent
   useEffect(() => {
-    setIndentSize(currentIndentSize);
+    setIndentSize?.(currentIndentSize);
   }, [setIndentSize, currentIndentSize]);
 
   // Detect indent size from contents (only when users are allowed to change it)