[release-2.2] perf: mute the fetch roles request (#858)

This is an automated cherry-pick of #857

/assign ruibaby

```release-note
None
```
pull/859/head
Halo Dev Bot 2 years ago committed by GitHub
parent cb055d3fb8
commit 5332839b3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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);

Loading…
Cancel
Save