From 0f0097c15cae1760130dee0d950124b7716f4f21 Mon Sep 17 00:00:00 2001 From: gbrodman Date: Tue, 25 Jun 2024 14:39:53 -0400 Subject: [PATCH] Wait to load domain list until a registrar is selected (#2485) This isn't the worst thing in the world but it does result in a bad request to the server otherwise, and log/error spam. So, only load the domains list if we have a registrar selected. --- console-webapp/src/app/domains/domainList.component.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/console-webapp/src/app/domains/domainList.component.ts b/console-webapp/src/app/domains/domainList.component.ts index 06cc5429e..c9d03eaa4 100644 --- a/console-webapp/src/app/domains/domainList.component.ts +++ b/console-webapp/src/app/domains/domainList.component.ts @@ -60,8 +60,9 @@ export class DomainListComponent { effect(() => { this.pageNumber = 0; this.totalResults = 0; - this.reloadData(); - this.registrarService.registrarId(); + if (this.registrarService.registrarId()) { + this.reloadData(); + } }); }