DEV: Do not render header in wizard preview when logo is missing (#10835)
This can happen if a plugin skips the logo step of the wizard.
This commit is contained in:
parent
c0350dc362
commit
e175c467cc
|
@ -34,7 +34,9 @@ export default createPreviewComponent(659, 320, {
|
||||||
paint({ ctx, colors, font, headingFont, width, height }) {
|
paint({ ctx, colors, font, headingFont, width, height }) {
|
||||||
const headerHeight = height * 0.3;
|
const headerHeight = height * 0.3;
|
||||||
|
|
||||||
this.drawFullHeader(colors, headingFont, this.logo);
|
if (this.logo) {
|
||||||
|
this.drawFullHeader(colors, headingFont, this.logo);
|
||||||
|
}
|
||||||
|
|
||||||
const margin = width * 0.04;
|
const margin = width * 0.04;
|
||||||
const avatarSize = height * 0.2;
|
const avatarSize = height * 0.2;
|
||||||
|
|
Loading…
Reference in New Issue