Skip to content

Commit

Permalink
fix type check on map source event
Browse files Browse the repository at this point in the history
  • Loading branch information
braddf committed Nov 26, 2024
1 parent e99ebda commit 44b5a58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/nowcasting-app/components/map/pvLatestMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ const PvLatestMap: React.FC<PvLatestMapProps> = ({
});

map.on("data", (e) => {
if (e.sourceId === "latestPV" && e.isSourceLoaded) {
if (e.dataType === "source" && e.sourceId === "latestPV" && e.isSourceLoaded) {
setMapDataLoading(false);
}
});
Expand Down

0 comments on commit 44b5a58

Please sign in to comment.