mirror of
https://github.com/revoltchat/revite.git
synced 2025-02-21 15:51:11 -05:00
fix: fix again the thing above i cant be asked to write commit messages anymore
This commit is contained in:
parent
a09fbe685d
commit
dbf681c2e9
1 changed files with 96 additions and 98 deletions
|
@ -45,7 +45,6 @@ function useEntries(
|
|||
const [entries, setEntries] = useState<MemberListGroup[]>([]);
|
||||
|
||||
function sort(keys: string[]) {
|
||||
defer(() => {
|
||||
const categories: { [key: string]: [User, string][] } = {
|
||||
online: [],
|
||||
offline: [],
|
||||
|
@ -156,13 +155,12 @@ function useEntries(
|
|||
}
|
||||
|
||||
setEntries(entries);
|
||||
});
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
return autorun(() => sort(generateKeys()));
|
||||
// eslint-disable-next-line
|
||||
}, [generateKeys]);
|
||||
}, []);
|
||||
|
||||
return entries;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue