diff options
author | crupest <crupest@outlook.com> | 2021-03-07 16:50:05 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-03-07 16:50:05 +0800 |
commit | d0759428e29812e19b3112cddcebf002dc542522 (patch) | |
tree | a340e375468a15bb6d6b715c7913a0b836061a93 /FrontEnd/src | |
parent | c837d8f0341a2e6d7be74d9c2fb092fc2220f741 (diff) | |
download | timeline-d0759428e29812e19b3112cddcebf002dc542522.tar.gz timeline-d0759428e29812e19b3112cddcebf002dc542522.tar.bz2 timeline-d0759428e29812e19b3112cddcebf002dc542522.zip |
...
Diffstat (limited to 'FrontEnd/src')
-rw-r--r-- | FrontEnd/src/app/views/timeline-common/TimelinePostEdit.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/FrontEnd/src/app/views/timeline-common/TimelinePostEdit.tsx b/FrontEnd/src/app/views/timeline-common/TimelinePostEdit.tsx index efe5a6ff..9d742514 100644 --- a/FrontEnd/src/app/views/timeline-common/TimelinePostEdit.tsx +++ b/FrontEnd/src/app/views/timeline-common/TimelinePostEdit.tsx @@ -126,7 +126,8 @@ const TimelinePostEdit: React.FC<TimelinePostEditProps> = (props) => { const canSend = (kind === "text" && text.length !== 0) || - (kind === "image" && image != null); + (kind === "image" && image != null) || + (kind === "markdown" && markdown.length !== 0); // eslint-disable-next-line @typescript-eslint/no-non-null-assertion const containerRef = React.useRef<HTMLDivElement>(null!); |