From cabcdd8885e9b2ff5bb399803ffd490e6b1969fe Mon Sep 17 00:00:00 2001 From: Daniel Palafox Date: Thu, 7 Mar 2024 14:39:26 -0600 Subject: [PATCH 1/2] fix: Return empty observable instead of null --- src/app/home/pages/home/home.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/home/pages/home/home.component.ts b/src/app/home/pages/home/home.component.ts index 968466e0b0..5fc345ff80 100644 --- a/src/app/home/pages/home/home.component.ts +++ b/src/app/home/pages/home/home.component.ts @@ -8,6 +8,7 @@ import { switchMap } from 'rxjs/operators' import { WordpressService } from 'src/app/core/wordpress/wordpress.service' import { DomSanitizer, SafeHtml } from '@angular/platform-browser' import { DOCUMENT } from '@angular/common' +import { EMPTY } from 'rxjs' @Component({ selector: 'app-home', @@ -44,7 +45,7 @@ export class HomeComponent implements OnInit { if (state) { return this.wordpressService.getHomePagePost() } else { - return null + return EMPTY } }) ) From 3222ab60ce670730fcb5603f4e88c486125d56e2 Mon Sep 17 00:00:00 2001 From: Leonardo Mendoza Fernadez Date: Wed, 13 Mar 2024 11:23:30 -0600 Subject: [PATCH 2/2] 9116-tech-check-errors-on-the-home-page --- src/index.html | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/index.html b/src/index.html index 23aa64bdb2..77c95eb2cd 100644 --- a/src/index.html +++ b/src/index.html @@ -8,12 +8,6 @@ - -