Clear local storage on selection (#795)
This commit is contained in:
parent
bdc33d3113
commit
0d27d96467
1 changed files with 7 additions and 1 deletions
|
|
@ -58,7 +58,13 @@ export const updateProfile = async (
|
|||
body: JSON.stringify(profileData),
|
||||
});
|
||||
await handleAuthResponse(response, 'Failed to update profile.');
|
||||
return await response.json();
|
||||
const updatedProfile = await response.json();
|
||||
|
||||
if ('task_intelligence_enabled' in profileData) {
|
||||
localStorage.removeItem('taskIntelligenceEnabled');
|
||||
}
|
||||
|
||||
return updatedProfile;
|
||||
};
|
||||
|
||||
export const fetchSchedulerStatus = async (): Promise<SchedulerStatus> => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue