pi-hole / web

Pi-hole Dashboard for stats and more
https://pi-hole.net
Other
1.98k stars 549 forks source link

Fix possible race condition in Top Lists #3061

Closed DL6ER closed 3 weeks ago

DL6ER commented 3 weeks ago

What does this implement/fix?

Fix possible race condition on page load of the index page. This is a recent regression by #3058

Reported on Discourse https://discourse.pi-hole.net/t/double-and-duplicate-items-in-all-the-top-categories/70969


Related issue or feature (if applicable): N/A

Pull request in docs with documentation (if applicable): N/A


By submitting this pull request, I confirm the following:

  1. I have read and understood the contributors guide, as well as this entire template. I understand which branch to base my commits and Pull Requests against.
  2. I have commented my proposed changes within the code.
  3. I am willing to help maintain this change if there are issues with it later.
  4. It is compatible with the EUPL 1.2 license
  5. I have squashed any insignificant commits. (git rebase)

Checklist: