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 1
1
/* eslint-disable no-unused-vars, no-param-reassign */
2
2
import { store } from '../../store.js' ; // connect to redux
3
+ import { ifDefined } from 'lit-html/directives/if-defined' ;
3
4
import { html } from 'lit-html' ;
4
5
import { BaseLitComponent } from '../../components/base-component' ;
5
6
import { customElement } from 'lit-element' ;
@@ -116,8 +117,8 @@ class Header extends BaseLitComponent {
116
117
: window . config ?. theme ?. logo ?. url || '/' } "
117
118
alt-text ="${ window . config ?. theme ?. logo ?. altText || '' } "
118
119
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 ) } "
121
122
text ="${ window . config ?. theme ?. logo ?. text === '' ||
122
123
window . config ?. theme ?. logo ?. text === false ||
123
124
window . config ?. theme ?. logo ?. text === 'none'
You can’t perform that action at this time.
0 commit comments