Skip to content

Commit

Permalink
fix: chart ID to number
Browse files Browse the repository at this point in the history
  • Loading branch information
Soare-Robert-Daniel committed May 10, 2024
1 parent bf7d7a2 commit 53795eb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions classes/Visualizer/Gutenberg/build/block.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion classes/Visualizer/Gutenberg/src/Editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,8 @@ class Editor extends Component {
if ( 'visualizer:mediaframe:close' === event.data ) {
createChartPopup.close();
} else if ( event.data.chartID ) {
this.getChart( event.data.chartID );
const chartID = parseInt( event.data.chartID, 10 );
this.getChart( chartID );
}
}, false );

Expand Down

0 comments on commit 53795eb

Please sign in to comment.