Merge pull request #3740 from alfonso-salces/MOBILE-4385
MOBILE-4385 side-blocks: Avoid render empty html blocks
This commit is contained in:
commit
8ae30abadf
@ -93,6 +93,13 @@ export class CoreBlockSideBlocksComponent implements OnInit {
|
|||||||
|
|
||||||
this.blocks = [];
|
this.blocks = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.blocks = this.blocks.filter(block =>
|
||||||
|
block.name !== 'html' ||
|
||||||
|
(
|
||||||
|
block.name === 'html' &&
|
||||||
|
!!block.contents?.content.trim().replace(/(\r\n|\n|\r)/, '').length
|
||||||
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user