feat: warn danger actions for dev
This commit is contained in:
parent
ef0173a356
commit
259e11c097
3 changed files with 24 additions and 5 deletions
|
@ -61,7 +61,9 @@ export function getReplyDraft(status: Status) {
|
|||
}
|
||||
}
|
||||
|
||||
export const isEmptyDraft = (draft: Draft) => {
|
||||
export const isEmptyDraft = (draft: Draft | null | undefined) => {
|
||||
if (!draft)
|
||||
return true
|
||||
const { params, attachments } = draft
|
||||
const status = params.status || ''
|
||||
return (status.length === 0 || status === '<p></p>')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue