kopia lustrzana https://github.com/nextcloud/social
Prevent handling reply when composer is not mounted
Signed-off-by: Louis Chemineau <louis@chmn.me>pull/1719/head
rodzic
ef9bd1a318
commit
ba16a8088d
|
@ -301,7 +301,7 @@ export default {
|
|||
* @param {import('../../types/Mastodon.js').Account} account
|
||||
*/
|
||||
prefillMessageWithMention(account) {
|
||||
if (!this.statusIsEmpty) {
|
||||
if (!this.statusIsEmpty || this.$refs.composerInput === undefined) {
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -413,6 +413,7 @@ export default {
|
|||
this.loading = false
|
||||
this.replyTo = null
|
||||
this.$refs.composerInput.innerText = ''
|
||||
this.updateStatusContent()
|
||||
this.attachments = {}
|
||||
this.$store.dispatch('refreshTimeline')
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue