Skip to content

Commit

Permalink
Better check between old editor data & new one
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiggr committed Jul 21, 2021
1 parent 1c14a9d commit 7aa7acf
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/EmbedChartBlock/Edit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,8 @@ class EmbedChartBlockEdit extends Component {
const { block } = this.props; // , data, onChangeBlock, selected, title

const hasNewEditorData =
this.props.data &&
this.props.data.text &&
this.props.data.text.blocks &&
this.props.data.text.editor
? this.props.data.text.editor === 'slate'
this.props.data && this.props.data.text && this.props.data.text.blocks
? this.props.data.text.editor && this.props.data.text.editor === 'slate'
: true;

return (
Expand Down

0 comments on commit 7aa7acf

Please sign in to comment.