From 943366b6bfd498b1444f4173bd13aa24668a8a24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Thu, 19 Sep 2024 23:17:43 +0200 Subject: [PATCH] pl-fe: maybe fix drafts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- packages/pl-fe/src/features/draft-statuses/builder.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/pl-fe/src/features/draft-statuses/builder.tsx b/packages/pl-fe/src/features/draft-statuses/builder.tsx index 583535332f..4272897d83 100644 --- a/packages/pl-fe/src/features/draft-statuses/builder.tsx +++ b/packages/pl-fe/src/features/draft-statuses/builder.tsx @@ -23,6 +23,7 @@ const buildStatus = (state: RootState, draftStatus: DraftStatus) => { const account = state.entities[Entities.ACCOUNTS]?.store[me]; const status = statusSchema.parse({ + id: 'draft', account, content: draftStatus.text.replace(new RegExp('\n', 'g'), '
'), /* eslint-disable-line no-control-regex */ created_at: draftStatus.schedule,