added clearSelection after logout all sessions
This commit is contained in:
parent
8e43bb289a
commit
00e4d5ed63
@ -505,7 +505,12 @@ class SelectionStore {
|
||||
};
|
||||
|
||||
findSessionIndexByUserId = (userId) => {
|
||||
return this.dataFromSocket.findIndex((data) => data.id === userId);
|
||||
return this.dataFromSocket.findIndex((data) => {
|
||||
if (Array.isArray(userId)) {
|
||||
return userId.some((id) => id === data.id);
|
||||
}
|
||||
return data.id === userId;
|
||||
});
|
||||
};
|
||||
|
||||
sessisonLogout = ({ userId, date }) => {
|
||||
@ -696,6 +701,7 @@ class SelectionStore {
|
||||
toastr.error(error);
|
||||
} finally {
|
||||
this.setIsLoading(false);
|
||||
this.clearSelection();
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user