We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c0ee43 commit fa3f89eCopy full SHA for fa3f89e
.changeset/slow-dolls-relax.md
@@ -0,0 +1,5 @@
1
+---
2
+'website': patch
3
4
+
5
+Fixed an issue where the host map could not refresh its data.
apps/website/content/geoHosts.ts
@@ -28,12 +28,8 @@ export async function getGeoHosts(): Promise<SiaCentralPartialHost[]> {
28
: -1
29
)
30
31
- // // filter hosts to unique locations
32
- // const uniqueHosts = uniqBy(
33
- // hosts,
34
- // (h) => `${h.location[0]},${h.location[1]}`
35
- // )
36
- const uniqueHosts = hosts
+ // Filter out hosts without location data
+ const uniqueHosts = hosts.filter((h) => h.location)
37
38
// to get a more even distribution, we want to select the top 64 hosts
39
// where no two hosts are within n degrees of each other.
0 commit comments