diff --git a/src/hooks/use-profiles.ts b/src/hooks/use-profiles.ts index 2ebbd3c2a..f07fd4ce0 100644 --- a/src/hooks/use-profiles.ts +++ b/src/hooks/use-profiles.ts @@ -51,6 +51,7 @@ export const useProfiles = () => { try { const result = await mutate(() => patchProfilesConfig(value), { id: 'patch-profiles-config', + errorNotice: false, onFulfilled: (outcome) => { if (outcome.status === 'valid') { void setCacheData(profilesQueryKey, (current) => @@ -60,12 +61,8 @@ export const useProfiles = () => { }, }) - if (!result.ok) { - // Backend Busy keeps local state untouched, as before. - return result.value - } const outcome = result.value - if (outcome.status !== 'valid' && outcome.status !== 'busy') { + if (outcome.status !== 'valid') { await mutateProfiles() } return outcome