mirror of
https://github.com/antebudimir/feishin.git
synced 2025-12-31 18:13:31 +00:00
Refactor server list to object instead of array
- Improve performance due to frequency of accessing the list
This commit is contained in:
parent
3dfeed1432
commit
b2db2b27da
4 changed files with 22 additions and 14 deletions
|
|
@ -192,8 +192,8 @@ axiosClient.interceptors.response.use(
|
|||
const serverId = currentServer.id;
|
||||
const token = currentServer.ndCredential;
|
||||
console.log(`token is expired: ${token}`);
|
||||
useAuthStore.getState().actions.setCurrentServer(null);
|
||||
useAuthStore.getState().actions.updateServer(serverId, { ndCredential: undefined });
|
||||
useAuthStore.getState().actions.setCurrentServer(null);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue