Skip to content

Commit e2db3a2

Browse files
Fix chart overlapping issue with the Gutenberg editor
1 parent b94b179 commit e2db3a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classes/Visualizer/Gutenberg/src/Editor.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ class Editor extends Component {
486486
window.parent.addEventListener( 'message', ( event ) => {
487487
if ( 'visualizer:mediaframe:close' === event.data ) {
488488
createChartPopup.close();
489-
} else if ( event.data.chartID ) {
489+
} else if ( event.data.chartID && null === this.state.chart ) {
490490
const chartID = parseInt( event.data.chartID, 10 );
491491
this.getChart( chartID );
492492
}

0 commit comments

Comments
 (0)