reiji-h 2 лет назад
Родитель
Сommit
d0e02e2e60
1 измененных файлов с 1 добавлено и 1 удалено
  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
   useEffect(() => {
-    setIndentSize(currentIndentSize);
+    setIndentSize?.(currentIndentSize);
   }, [setIndentSize, currentIndentSize]);
 
   // Detect indent size from contents (only when users are allowed to change it)