Skip to content
This repository has been archived by the owner on Jan 21, 2024. It is now read-only.

Commit

Permalink
[release-2.2] perf: mute the fetch roles request (#858)
Browse files Browse the repository at this point in the history
This is an automated cherry-pick of #857

/assign ruibaby

```release-note
None
```
  • Loading branch information
halo-dev-bot authored Feb 15, 2023
1 parent cb055d3 commit 5332839
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/stores/role.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,14 @@ export const useRoleStore = defineStore("role", () => {

async function fetchRoles() {
try {
const { data } = await apiClient.extension.role.listv1alpha1Role({
page: 0,
size: 0,
labelSelector: [`!${roleLabels.TEMPLATE}`],
});
const { data } = await apiClient.extension.role.listv1alpha1Role(
{
page: 0,
size: 0,
labelSelector: [`!${roleLabels.TEMPLATE}`],
},
{ mute: true }
);
roles.value = data.items;
} catch (error) {
console.error("Failed to fetch roles", error);
Expand Down

0 comments on commit 5332839

Please sign in to comment.