Skip to content

Commit

Permalink
fixing more linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
PhillipsOwen committed Apr 30, 2024
1 parent 7230efc commit 4c1c7cd
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/components/map/default-layers.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export const DefaultLayers = () => {
const obs_data = await obs_response.json();
//console.log("obs_data 1: " + JSON.stringify(obs_data, null, 2))

setObsData(obs_data)
setObsData(obs_data);
}

}
Expand All @@ -87,18 +87,17 @@ export const DefaultLayers = () => {
return (
<>
{defaultModelLayers.map((layer, index) => {
const pieces = layer.id.split('-')
const type = pieces[pieces.length-1]
const pieces = layer.id.split('-');
const type = pieces[pieces.length-1];
//console.log("type: " + JSON.stringify(type, null, 2))
if( type === "obs" && obsData !== "") {
console.log("obsData: " + JSON.stringify(obsData, null, 2))
console.log("obsData: " + JSON.stringify(obsData, null, 2));
return (
<GeoJSON
key = {index}
data = {obsData}
>
</GeoJSON>
)
/>
);
}
// else {
// return (
Expand Down

0 comments on commit 4c1c7cd

Please sign in to comment.