mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-09 23:15:43 +01:00
Add unit tests
This commit is contained in:
@@ -204,10 +204,9 @@ export const logout = (link: string, history: History) => {
|
||||
})
|
||||
.then(json => {
|
||||
if (json && json.logoutRedirect) {
|
||||
location.href = json.logoutRedirect;
|
||||
} else {
|
||||
dispatch(logoutSuccess());
|
||||
window.location.assign(json.logoutRedirect);
|
||||
}
|
||||
dispatch(logoutSuccess());
|
||||
})
|
||||
.then(() => {
|
||||
dispatch(fetchIndexResources());
|
||||
|
||||
Reference in New Issue
Block a user