mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-11 20:05:19 +00:00
fix: return json for successful userSignOut
return json when signout request is successful so that frontend can get redirect url with res?.redirect_url on signout
This commit is contained in:
parent
5e35aab292
commit
eb3c080cce
1 changed files with 1 additions and 1 deletions
|
|
@ -336,7 +336,7 @@ export const userSignOut = async () => {
|
|||
})
|
||||
.then(async (res) => {
|
||||
if (!res.ok) throw await res.json();
|
||||
return res;
|
||||
return res.json();
|
||||
})
|
||||
.catch((err) => {
|
||||
console.error(err);
|
||||
|
|
|
|||
Loading…
Reference in a new issue