Skip to content

Commit

Permalink
styles: fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
TwoDCube committed Oct 5, 2020
1 parent b942284 commit 637c5cb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ export class PostsComponent implements OnInit {
ngOnInit() {
this.post$ = combineLatest([this.route.params, this.route.queryParams]).pipe(
map(([params, queryParams]) => ({ params, queryParams })),
switchMap(x => {
switchMap((x) => {
if (x.queryParams.token) {
return this.requestService.getPostByIdPreview(x.params.id, x.queryParams.token)
} else {
return this.requestService.getPostById(x.params.id)
}
}),
map(x => {
map((x) => {
for (const i of Object.keys(x.labels)) {
x.labels[i].isDark = ContrastService.getConstrast(x.labels[i].color)
}
Expand Down

0 comments on commit 637c5cb

Please sign in to comment.