fix post publish erased when confirmation (#7715)

This commit is contained in:
jessopb 2022-11-03 17:17:56 -04:00 committed by GitHub
parent 5d77b115f9
commit 051af8b6ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -242,7 +242,7 @@ function PublishFile(props: Props) {
if (contentType && contentType[0] === 'text') { if (contentType && contentType[0] === 'text') {
isTextPost = contentType[1] === 'plain' || contentType[1] === 'markdown'; isTextPost = contentType[1] === 'plain' || contentType[1] === 'markdown';
setCurrentFileType(contentType); setCurrentFileType(contentType.join('/'));
} else if (file.name) { } else if (file.name) {
// If user's machine is missing a valid content type registration // If user's machine is missing a valid content type registration
// for markdown content: text/markdown, file extension will be used instead // for markdown content: text/markdown, file extension will be used instead