summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2021-06-04 11:59:48 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2021-06-04 12:00:47 +0200
commitc65c28282d569969da3ce3ef44c56f81c4d13ca6 (patch)
tree13ff5f25373782be182c678852f24229ee6854a0 /src
parentec2f8e708d82a60035f671da37d841837f4f2c7b (diff)
Prevent NavigationDuplicated
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/mixins/CircleActionsMixin.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mixins/CircleActionsMixin.js b/src/mixins/CircleActionsMixin.js
index 2bc0cc84..ab03d5d7 100644
--- a/src/mixins/CircleActionsMixin.js
+++ b/src/mixins/CircleActionsMixin.js
@@ -145,7 +145,10 @@ export default {
* Trigger the entity picker view
*/
async addMemberToCircle() {
- await this.$router.push(this.circle.router)
+ try {
+ // Avoid VueRouter NavigationDuplicated
+ await this.$router.push(this.circle.router)
+ } catch (error) {}
emit('contacts:circles:append', this.circle.id)
},
},