diff --git a/src/frontend/src/store/group.js b/src/frontend/src/store/group.js index c3c2e35..f5ddf1a 100644 --- a/src/frontend/src/store/group.js +++ b/src/frontend/src/store/group.js @@ -18,7 +18,7 @@ export const useGroupStore = defineStore('group', { this.loading = true; const url = `${config.backendUrl}/groups`; const resp = await performRequest(this,'GET', url, null); - this.groups = resp.data; + this.groups = resp.data.groups; this.loading = false; } } diff --git a/src/frontend/src/store/users.js b/src/frontend/src/store/users.js index 9adc32c..9d48c3d 100644 --- a/src/frontend/src/store/users.js +++ b/src/frontend/src/store/users.js @@ -56,8 +56,8 @@ export const useUsersStore = defineStore('users', { }; this.loading = false; - this.empty = data.length === 0; - this.users = data; + this.empty = data.users.length === 0; + this.users = data.users; } }