Skip to content

Commit

Permalink
Stations selected by map legend are ignored by plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
eireland committed Feb 9, 2024
1 parent 5de9c11 commit 06ca536
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/components/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export const App = () => {
message: "Station is active for date range",
icon: <DoneIcon />
});
} else {
} else if (weatherStation) {
setDisableGetData(true);
setStatus({
status: "station-error",
Expand All @@ -123,7 +123,8 @@ export const App = () => {
const stationSelectionHandler = async(req: any) =>{
if (req.values.operation === "selectCases") {
const result = req.values.result;
const myCase = result && result.cases && result.cases[0];
console.log("result", result );

Check warning on line 126 in src/components/App.tsx

View workflow job for this annotation

GitHub Actions / Build & Run Tests

Unexpected console statement

Check warning on line 126 in src/components/App.tsx

View workflow job for this annotation

GitHub Actions / S3 Deploy

Unexpected console statement
const myCase = result && (result.cases.length === 1) && result.cases[0];
if (myCase) {
const station = myCase.values;
const {latitude, longitude} = station;
Expand Down

0 comments on commit 06ca536

Please sign in to comment.