mirror of
https://github.com/MathMan05/Fermi.git
synced 2026-03-29 11:29:52 +00:00
make it async
This commit is contained in:
@@ -96,8 +96,8 @@ class InfiniteScroller {
|
||||
};
|
||||
}
|
||||
|
||||
deleteId(id: string) {
|
||||
this.removeElm(id);
|
||||
async deleteId(id: string) {
|
||||
await this.removeElm(id);
|
||||
}
|
||||
|
||||
private async clearElms() {
|
||||
@@ -121,7 +121,6 @@ class InfiniteScroller {
|
||||
if (forward) this.backElm.delete(forward);
|
||||
this.forElm.delete(id);
|
||||
|
||||
// This purposefully leaves all references pointing out alone so nothing breaks
|
||||
const elm = this.curElms.get(id);
|
||||
this.curElms.delete(id);
|
||||
await this.destroyFromID(id);
|
||||
|
||||
Reference in New Issue
Block a user