visuddhinanda 2 лет назад
Родитель
Сommit
52c8467fe1
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      dashboard/src/components/discussion/DiscussionCreate.tsx

+ 1 - 0
dashboard/src/components/discussion/DiscussionCreate.tsx

@@ -153,6 +153,7 @@ const DiscussionCreateWidget = ({
               ) : contentType === "markdown" ? (
                 <Form.Item
                   name="content"
+                  rules={[{ required: typeof parent !== "undefined" }]}
                   label={
                     typeof parent === "undefined"
                       ? intl.formatMessage({