diff --git a/superset-frontend/plugins/legacy-preset-chart-deckgl/src/DeckGLContainer.jsx b/superset-frontend/plugins/legacy-preset-chart-deckgl/src/DeckGLContainer.jsx index 133d83348e42a..87d5d1239e630 100644 --- a/superset-frontend/plugins/legacy-preset-chart-deckgl/src/DeckGLContainer.jsx +++ b/superset-frontend/plugins/legacy-preset-chart-deckgl/src/DeckGLContainer.jsx @@ -63,6 +63,12 @@ export class DeckGLContainer extends React.Component { }; } + UNSAFE_componentWillReceiveProps(nextProps) { + if (nextProps.viewport !== this.props.viewport) { + this.setState({ viewState: nextProps.viewport }); + } + } + componentWillUnmount() { clearInterval(this.state.timer); }