mirror of
https://github.com/revoltchat/revite.git
synced 2025-02-22 08:11:03 -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[]>([]);
|
const [entries, setEntries] = useState<MemberListGroup[]>([]);
|
||||||
|
|
||||||
function sort(keys: string[]) {
|
function sort(keys: string[]) {
|
||||||
defer(() => {
|
|
||||||
const categories: { [key: string]: [User, string][] } = {
|
const categories: { [key: string]: [User, string][] } = {
|
||||||
online: [],
|
online: [],
|
||||||
offline: [],
|
offline: [],
|
||||||
|
@ -156,13 +155,12 @@ function useEntries(
|
||||||
}
|
}
|
||||||
|
|
||||||
setEntries(entries);
|
setEntries(entries);
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
return autorun(() => sort(generateKeys()));
|
return autorun(() => sort(generateKeys()));
|
||||||
// eslint-disable-next-line
|
// eslint-disable-next-line
|
||||||
}, [generateKeys]);
|
}, []);
|
||||||
|
|
||||||
return entries;
|
return entries;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue