fix post publish erased when confirmation (#7715)
This commit is contained in:
parent
5d77b115f9
commit
051af8b6ad
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue