From df16580d8796454e62d11c61a31873b98ebd4bc2 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Tue, 13 Sep 2022 17:41:58 -0700 Subject: [PATCH] use ref properly --- packages/client/src/pages/my-groups/group.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/client/src/pages/my-groups/group.vue b/packages/client/src/pages/my-groups/group.vue index e82c3ce20..dab075ba3 100644 --- a/packages/client/src/pages/my-groups/group.vue +++ b/packages/client/src/pages/my-groups/group.vue @@ -45,7 +45,7 @@ const props = defineProps<{ } }>(); -const users = ref([]); +const users.value = ref([]); const group = ref(); const router = useRouter(); @@ -59,11 +59,11 @@ async function fetch() { os.api('users/groups/show', { groupId: props.groupId, }).then(gp => { - group = gp; + group.value = gp; os.api('users/show', { userIds: group.userIds }).then(us => { - users = us; + users.value = us; }); }); } @@ -84,7 +84,7 @@ function removeUser(user) { groupId: group.id, userId: user.id }).then(() => { - users = users.filter(x => x.id !== user.id); + users.value = users.filter(x => x.id !== user.id); }); }