Prevent handling reply when composer is not mounted

Signed-off-by: Louis Chemineau <louis@chmn.me>
pull/1719/head
Louis Chemineau 2023-04-06 15:00:45 +02:00
rodzic ef9bd1a318
commit ba16a8088d
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -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')
}