From 870593594d4873503cf7a46e93b2fdc572e549d2 Mon Sep 17 00:00:00 2001 From: RXRD Date: Tue, 29 Aug 2023 14:57:33 +0700 Subject: [PATCH] fix: fail to create exclusive content --- src/components/PostCreate/PostCreate.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/PostCreate/PostCreate.tsx b/src/components/PostCreate/PostCreate.tsx index 0e0bc6c3d..088cf4c12 100644 --- a/src/components/PostCreate/PostCreate.tsx +++ b/src/components/PostCreate/PostCreate.tsx @@ -174,7 +174,7 @@ export const PostCreate: React.FC = props => { selectedUserIds: post.selectedUserIds, NSFWTag: post.NSFWTag, visibility: post.visibility ?? PostVisibility.PUBLIC, - selectedTimelineIds: post.selectedTimelineIds, + selectedTimelineIds: post.selectedTimelineIds ?? timelineId, }; if (resp?.id) { @@ -228,7 +228,7 @@ export const PostCreate: React.FC = props => { selectedUserIds: post.selectedUserIds, NSFWTag: post.NSFWTag, visibility: post.visibility ?? PostVisibility.PUBLIC, - selectedTimelineIds: post.selectedTimelineIds, + selectedTimelineIds: post.selectedTimelineIds ?? timelineId, }; if (resp?.id) {