From d0843b01b097b1c6a6c663babe8c070fdc74966e Mon Sep 17 00:00:00 2001 From: zeppi Date: Thu, 3 Nov 2022 17:15:40 -0400 Subject: [PATCH] fix post publish erased when confirmation --- ui/component/publishFile/view.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/component/publishFile/view.jsx b/ui/component/publishFile/view.jsx index 0eafc2641..50a47b2c5 100644 --- a/ui/component/publishFile/view.jsx +++ b/ui/component/publishFile/view.jsx @@ -242,7 +242,7 @@ function PublishFile(props: Props) { if (contentType && contentType[0] === 'text') { isTextPost = contentType[1] === 'plain' || contentType[1] === 'markdown'; - setCurrentFileType(contentType); + setCurrentFileType(contentType.join('/')); } else if (file.name) { // If user's machine is missing a valid content type registration // for markdown content: text/markdown, file extension will be used instead