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 committed Nov 4, 2018
1 parent a2f717b commit 75f5c9a
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 75f5c9a

Please sign in to comment.