소스 검색

Assume that isIndentSizeForced may be null

Tatsunori Uchino 5 년 전
부모
커밋
2c6960fb19
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/client/js/components/Admin/MarkdownSetting/IndentForm.jsx

+ 1 - 1
src/client/js/components/Admin/MarkdownSetting/IndentForm.jsx

@@ -61,7 +61,7 @@ const IndentForm = (props) => {
             type="checkbox"
             className="custom-control-input"
             id="isIndentSizeForced"
-            checked={isIndentSizeForced}
+            checked={isIndentSizeForced || false}
             onChange={() => {
               adminMarkDownContainer.setState({ isIndentSizeForced: !isIndentSizeForced });
             }}