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

This commit is contained in:
Isaac Grynsztein
2020-02-20 14:30:05 -05:00
parent a15e1f98fa
commit 8fec9639eb

View File

@@ -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;">