Skip to content

Commit

Permalink
Merge pull request #275 from amilosmanli/fix-refresh-duplicated-list
Browse files Browse the repository at this point in the history
Fix refresh duplicated list
  • Loading branch information
benwinding committed Apr 26, 2023
2 parents ac0fd05 + 2398ba1 commit 4e68432
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/providers/database/ResourceManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ export class ResourceManager {
const collectionOrQuery = this.applyQuery(collectionRef, collectionQuery);
const newDocs = await getDocs(collectionOrQuery);

resource.list = [];
newDocs.forEach((d) =>
resource.list.push(parseFireStoreDocument<IResourceItem>(d))
);
Expand Down

0 comments on commit 4e68432

Please sign in to comment.