From 32e82a93f4252247355b6956106450a7f31fa881 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Wed, 14 Jun 2023 08:07:28 -0400 Subject: [PATCH] Fix navigation warnings. --- src/shared/components/common/markdown-textarea.tsx | 6 +++++- src/shared/components/post/create-post.tsx | 2 -- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/shared/components/common/markdown-textarea.tsx b/src/shared/components/common/markdown-textarea.tsx index b9597fed..9318d3bb 100644 --- a/src/shared/components/common/markdown-textarea.tsx +++ b/src/shared/components/common/markdown-textarea.tsx @@ -136,7 +136,11 @@ export class MarkdownTextArea extends Component< return (
diff --git a/src/shared/components/post/create-post.tsx b/src/shared/components/post/create-post.tsx index fd60503b..ee2600d2 100644 --- a/src/shared/components/post/create-post.tsx +++ b/src/shared/components/post/create-post.tsx @@ -225,8 +225,6 @@ export class CreatePost extends Component< const postId = res.data.post_view.post.id; this.props.history.replace(`/post/${postId}`); } - - return res; } static fetchInitialData({