Skip to content

Commit

Permalink
fix: compare against correct data
Browse files Browse the repository at this point in the history
  • Loading branch information
henrinormak committed Nov 26, 2020
1 parent 9d72dd1 commit 85b953e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/geojson-layer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ export class GeoJSONLayer extends React.Component<Props> {
return;
}

if (prevProps.data !== data) {
if (this.props.data !== data) {
source.setData(this.props.data);

this.source = {
Expand Down

0 comments on commit 85b953e

Please sign in to comment.