Skip to content

Commit

Permalink
Remove unused constant object
Browse files Browse the repository at this point in the history
  • Loading branch information
silviubogan committed Oct 9, 2020
1 parent 0726bc7 commit 69eaf73
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ColumnsBlock/ColumnsBlockEdit.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,9 @@ class ColumnsBlockEdit extends React.Component {
// fill empty columns
if (this.props.data.data?.blocks) {
for (const colId in this.props.data.data?.blocks) {
const col = clone(this.props.data.data?.blocks[colId]);

if (col.blocks_layout.items.length === 0) {
if (
this.props.data.data?.blocks[colId].blocks_layout.items.length === 0
) {
const newCol = defaultNewColumn();

const fd = clone(this.props.properties);
Expand Down

0 comments on commit 69eaf73

Please sign in to comment.