Просмотр исходного кода

Assume that isIndentSizeForced may be null

Tatsunori Uchino 5 лет назад
Родитель
Сommit
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"
             type="checkbox"
             className="custom-control-input"
             className="custom-control-input"
             id="isIndentSizeForced"
             id="isIndentSizeForced"
-            checked={isIndentSizeForced}
+            checked={isIndentSizeForced || false}
             onChange={() => {
             onChange={() => {
               adminMarkDownContainer.setState({ isIndentSizeForced: !isIndentSizeForced });
               adminMarkDownContainer.setState({ isIndentSizeForced: !isIndentSizeForced });
             }}
             }}