diff --git a/layout-card.js b/layout-card.js index 42e865f..840b417 100644 --- a/layout-card.js +++ b/layout-card.js @@ -52,7 +52,7 @@ class LayoutCard extends Polymer.Element { } _updateColumns() { - if (this.parentElement.id === "view") + if (this.parentElement && this.parentElement.id === "view") { this.style.padding = "8px 4px 0"; this.style.display = "block";