fixed bug where if no theme was selected, errors would fire

pull/11/head
Isaac Grynsztein 5 years ago
parent a15e1f98fa
commit 8fec9639eb

@ -1,4 +1,4 @@
<div [style.background]="postsService.theme.background_color" style="width: 100%; height: 100%;">
<div [style.background]="postsService.theme ? postsService.theme.background_color : null" style="width: 100%; height: 100%;">
<mat-toolbar color="primary" class="top">
<div class="flex-row" width="100%" height="100%">
<div class="flex-column" style="text-align: left; margin-top: 1px;">

Loading…
Cancel
Save