diff --git a/src/components/addons/InfoBox.jsx b/src/components/addons/InfoBox.jsx index 76dd9884..b84b06fa 100644 --- a/src/components/addons/InfoBox.jsx +++ b/src/components/addons/InfoBox.jsx @@ -108,9 +108,9 @@ export class InfoBox extends React.PureComponent { const infoBox = new GoogleMapsInfobox() construct(InfoBox.propTypes, updaterMap, this.props, infoBox) infoBox.setMap(this.context[MAP]) - this.state = { + this.setState({ [INFO_BOX]: infoBox, - } + }) } componentDidMount() {