diff --git a/src/views/Me/DraftDetail/index.tsx b/src/views/Me/DraftDetail/index.tsx index 498c226491..c72438841f 100644 --- a/src/views/Me/DraftDetail/index.tsx +++ b/src/views/Me/DraftDetail/index.tsx @@ -137,8 +137,13 @@ const DraftDetail = () => { draft?.content && stripHtml(draft.content).trim().length > 0 const hasTitle = draft?.title && draft.title.length > 0 const isUnpublished = draft?.publishState === 'unpublished' - const publishable = - id && isUnpublished && hasContent && hasTitle && hasValidSummary + const publishable = !!( + id && + isUnpublished && + hasContent && + hasTitle && + hasValidSummary + ) const upload = async (input: { [key: string]: any }) => { const result = await singleFileUpload({