Skip to content

Commit

Permalink
Paint map when zones source not fully loaded (electricitymaps#6109)
Browse files Browse the repository at this point in the history
  • Loading branch information
tonypls authored Nov 7, 2023
1 parent 74ff93f commit 6f673bd
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion web/src/features/map/Map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ export default function MapPage(): ReactElement {
// An issue where the map has not loaded source yet causing map errors
const isSourceLoaded =
map.getSource('zones-clickable') !== undefined &&
map.isSourceLoaded('zones-clickable') &&
map.getSource('states') !== undefined &&
map.isSourceLoaded('states');

Expand Down

0 comments on commit 6f673bd

Please sign in to comment.