Skip to content
Snippets Groups Projects
Unverified Commit a9b54755 authored by Paul Rosenzweig's avatar Paul Rosenzweig Committed by GitHub
Browse files

avoid crash when PinMap is missing a warning handler (#12607)

parent 5516119e
No related branches found
No related tags found
No related merge requests found
......@@ -159,8 +159,9 @@ export default class PinMap extends Component {
t`We filtered out ${filteredRows} row(s) containing null values.`,
);
}
// $FlowFixMe flow thinks warnings can be undefined
onUpdateWarnings(warnings);
if (onUpdateWarnings && warnings) {
onUpdateWarnings(warnings);
}
const bounds = L.latLngBounds(points);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment