fix post publish erased when confirmation

This commit is contained in:
zeppi 2022-11-03 17:15:40 -04:00
parent 7dbeeac112
commit d0843b01b0

View file

@ -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