Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasneirynck committed Mar 7, 2020
1 parent fae5e84 commit 2958ba7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export class VectorStyleEditor extends Component {
const fields = await this.props.layer.getFields();
const fieldPromises = fields.map(getFieldMeta);
const fieldsArrayAll = await Promise.all(fieldPromises);
if (this._isMounted && !_.isEqual(fieldsArrayAll, this.state.fields)) {
if (!this._isMounted || _.isEqual(fieldsArrayAll, this.state.fields)) {
return;
}

Expand Down

0 comments on commit 2958ba7

Please sign in to comment.