thomasloven / lovelace-layout-card

🔹 Get more control over the placement of lovelace cards.
MIT License
1.08k stars 127 forks source link

unknow error on reuse #237

Open SoulRaven opened 1 year ago

SoulRaven commented 1 year ago

My Home Assistant version: 2023.2.5

Layout-card version (FROM BROWSER CONSOLE): LAYOUT-CARD 1.2.1 IS INSTALLED

title: UPS devices
id: ups_devices
path: ups_devices
icon: mdi:battery-charging-high
panel: true
cards:
  - type: custom:layout-card
    layout_type: grid
    layout:
      grid-template-columns: 33% 33% 33%
      grid-template-rows: auto
      grid-template-areas: |
        "ups ups ups"
        "ups ups ups"
    cards:
....

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'then') at p.updateSize (layout-card.js:1:8172) at p.firstUpdated (layout-card.js:1:7991) at p.$AE (styles.ts:372:1) at p.performUpdate (styles.ts:372:1) at p.scheduleUpdate (styles.ts:372:1) at p.$Ej (styles.ts:372:1) at async p._$Ej (styles.ts:372:1)

this.requestUpdate().then(()=>this.resizer.observe(this)))

By putting an X in the boxes ([X]) below, I indicate that I: