kdamichie commented on code in PR #7243:
URL: https://github.com/apache/trafficcontrol/pull/7243#discussion_r1050925772


##########
experimental/traffic-portal/src/app/core/cache-groups/divisions/table/divisions-table.component.ts:
##########
@@ -129,7 +131,12 @@ export class DivisionsTableComponent implements OnInit {
                                await this.router.navigate(["/core/division", 
data.id]);
                                break;
                        case "viewRegions":
-                               await this.router.navigate(["/core/regions"]);
+                               const region = (await 
this.regions).find(regionDiv => regionDiv.division === data.id);
+                               if (region === undefined) {
+                                       await 
this.router.navigate(["/core/regions"]);
+                               } else {
+                                       await 
this.router.navigate(["/core/region", region.id]);

Review Comment:
   Ok, I'll roll these changes back then.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to