From ceae664ce074f2ba2e61fc5b209dd0bf73b58148 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sat, 6 Feb 2021 21:22:27 -0700 Subject: [PATCH] Update ComposeModal, prevent tagging empty users. Fixes #2633 --- resources/assets/js/components/ComposeModal.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/assets/js/components/ComposeModal.vue b/resources/assets/js/components/ComposeModal.vue index 393a1d6d..60642726 100644 --- a/resources/assets/js/components/ComposeModal.vue +++ b/resources/assets/js/components/ComposeModal.vue @@ -1177,7 +1177,9 @@ export default { q: input } }).then(res => { - //return res.data; + if(!res.data.length) { + return; + } return res.data.filter(d => { return self.taggedUsernames.filter(r => { return r.id == d.id;