From 7c49ce44ecdb941a8e0b4671958403811d723c17 Mon Sep 17 00:00:00 2001 From: Zara Mudassar <zara.1310@hotmail.com> Date: Mon, 2 May 2022 08:26:32 +0200 Subject: [PATCH] Added try catch block --- src/components/BaseComponents/CommunityHeader.vue | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/BaseComponents/CommunityHeader.vue b/src/components/BaseComponents/CommunityHeader.vue index f646bd8..120cfe4 100644 --- a/src/components/BaseComponents/CommunityHeader.vue +++ b/src/components/BaseComponents/CommunityHeader.vue @@ -108,7 +108,11 @@ export default { } }, getIfUserInCommunity: async function(){ - this.member = await GetIfUserAlreadyInCommunity(this.$router.currentRoute.value.params.communityID); + try{ + this.member = await GetIfUserAlreadyInCommunity(this.$router.currentRoute.value.params.communityID); + } catch (error){ + console.log(error); + } } }, beforeMount() { -- GitLab