Bläddra i källkod

fix to call setindentSize

reiji-h 2 år sedan
förälder
incheckning
d0e02e2e60
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      apps/app/src/components/PageEditor/PageEditor.tsx

+ 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
   // Set indent size by current indent
   useEffect(() => {
   useEffect(() => {
-    setIndentSize(currentIndentSize);
+    setIndentSize?.(currentIndentSize);
   }, [setIndentSize, currentIndentSize]);
   }, [setIndentSize, currentIndentSize]);
 
 
   // Detect indent size from contents (only when users are allowed to change it)
   // Detect indent size from contents (only when users are allowed to change it)