Skip to content

Commit

Permalink
Fixes liferay#1268 - Check if element exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlos Lancha authored and bryceosterhaus committed Nov 5, 2018
1 parent de41295 commit daf4fd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/clay-component/src/ClayComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class ClayComponent extends Component {
attached(...args) {
super.attached(...args);

if (isServerSide()) {
if (isServerSide() || !this.element) {
return;
}

Expand Down

0 comments on commit daf4fd1

Please sign in to comment.