Skip to content

Commit

Permalink
remove async/await
Browse files Browse the repository at this point in the history
  • Loading branch information
onmax committed Sep 8, 2023
1 parent ff7340e commit 1d3d79d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stores/cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export const useCluster = defineStore('cluster', () => {
return { key, item, needsToUpdate }
}

async function needsToUpdate() {
function needsToUpdate() {
// We only need to re-cluster if we are zoomed out enough to see clusters
return (zoom.value > CLUSTERS_MAX_ZOOM)
? !bBoxIsWithinArea(boundingBox.value!, visitedAreas.value) // If we already visited this area, no need to re-cluster
Expand Down

0 comments on commit 1d3d79d

Please sign in to comment.