From d58d3a95ee1ced91ff937a5c096decb51798f3cd Mon Sep 17 00:00:00 2001 From: Erik Borgeteien Hansen <erik@erikbhan.no> Date: Tue, 3 May 2022 09:57:17 +0200 Subject: [PATCH] move filter to later in lifecycle --- src/views/CommunityViews/CommunityView.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/CommunityViews/CommunityView.vue b/src/views/CommunityViews/CommunityView.vue index bf371e9..8755c39 100644 --- a/src/views/CommunityViews/CommunityView.vue +++ b/src/views/CommunityViews/CommunityView.vue @@ -42,7 +42,8 @@ export default { if (!this.loggedIn) return; this.myCommunities = await getMyGroups(); - + }, + mounted() { // Double loop is bad; find a better way to do this for (var i = 0; i < this.publicCommunities.length; i++) { for (var j = 0; j < this.myCommunities.length; j++) { -- GitLab