post status form error handling
This commit is contained in:
parent
7fc0765dc9
commit
d449701b84
3 changed files with 3 additions and 12 deletions
|
|
@ -635,11 +635,6 @@ const PostStatusForm = {
|
|||
// Don't apply preview if not loading, because it means
|
||||
// user has closed the preview manually.
|
||||
if (!this.previewLoading) return
|
||||
if (!data.error) {
|
||||
this.preview = data
|
||||
} else {
|
||||
this.preview = { error: data.error }
|
||||
}
|
||||
})
|
||||
.catch((error) => {
|
||||
this.preview = { error }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue