File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 11/* eslint-disable no-unused-vars, no-param-reassign */
22import { store } from '../../store.js' ; // connect to redux
3+ import { ifDefined } from 'lit-html/directives/if-defined' ;
34import { html } from 'lit-html' ;
45import { BaseLitComponent } from '../../components/base-component' ;
56import { customElement } from 'lit-element' ;
@@ -116,8 +117,8 @@ class Header extends BaseLitComponent {
116117 : window . config ?. theme ?. logo ?. url || '/' } "
117118 alt-text ="${ window . config ?. theme ?. logo ?. altText || '' } "
118119 theme ="${ this . themeMode } "
119- width ="${ window . config ?. theme ?. logo ?. width || '' } "
120- height ="${ window . config ?. theme ?. logo ?. height || '' } "
120+ width ="${ ifDefined ( window . config ?. theme ?. logo ?. width ) } "
121+ height ="${ ifDefined ( window . config ?. theme ?. logo ?. height ) } "
121122 text ="${ window . config ?. theme ?. logo ?. text === '' ||
122123 window . config ?. theme ?. logo ?. text === false ||
123124 window . config ?. theme ?. logo ?. text === 'none'
You can’t perform that action at this time.
0 commit comments