mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-22 16:56:35 +00:00
Check for integration before loading logo (#7653)
This commit is contained in:
parent
67814505b3
commit
0cc2d3aaa7
@ -224,12 +224,19 @@ export class HaConfigDevicePage extends LitElement {
|
||||
`
|
||||
: ""
|
||||
}
|
||||
<img
|
||||
src=${brandsUrl(integrations[0], "logo")}
|
||||
referrerpolicy="no-referrer"
|
||||
@load=${this._onImageLoad}
|
||||
@error=${this._onImageError}
|
||||
/>
|
||||
${
|
||||
integrations.length
|
||||
? html`
|
||||
<img
|
||||
src=${brandsUrl(integrations[0], "logo")}
|
||||
referrerpolicy="no-referrer"
|
||||
@load=${this._onImageLoad}
|
||||
@error=${this._onImageError}
|
||||
/>
|
||||
`
|
||||
: ""
|
||||
}
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="column">
|
||||
|
Loading…
x
Reference in New Issue
Block a user