We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f0b131 commit 46047baCopy full SHA for 46047ba
src/components/post/Editor.vue
@@ -794,15 +794,16 @@ export default Vue.extend({
794
postImages,
795
)
796
try {
797
- const cid: string = await sendRegularPost(p)
798
this.hasPosted = true
+ const cid: string = await sendRegularPost(p)
799
this.title = ``
800
this.subtitle = ``
801
this.input = ``
802
this.$store.commit(`draft/reset`)
803
this.$store.commit(`settings/setRecentlyPosted`, true)
804
this.$router.push(`/post/` + cid)
805
} catch (err: unknown) {
806
+ this.hasPosted = false
807
this.$handleError(err)
808
}
809
0 commit comments