Skip to content

Commit

Permalink
undefined check on classList
Browse files Browse the repository at this point in the history
  • Loading branch information
Chrillaz authored Nov 3, 2020
1 parent bb226ba commit 4749e5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export const ButtonIconControl = ({ attributes, setAttributes }) => {

const { className } = attributes;

const classList = [...className.split( ' ' )];
const classList = className != undefined ? [...className.split( ' ' )] : '';

const hasAlign = boolean => boolean ? 'right' : 'left';

Expand Down

0 comments on commit 4749e5d

Please sign in to comment.