Skip to content

Commit

Permalink
WFNEWS-2358 : Add array check
Browse files Browse the repository at this point in the history
  • Loading branch information
sukhpalp committed Jul 26, 2024
1 parent 25a0333 commit 65b8e1b
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,8 @@ export class IncidentHeaderPanelComponent implements AfterViewInit, OnInit {
},
});
} else {
this.router.navigate(this.params['source']);
const destination = Array.isArray(this.params['source']) ? this.params['source'] : [this.params['source']];
this.router.navigate(destination);
}
} else {
this.router.navigate([ResourcesRoutes.DASHBOARD]);
Expand Down

0 comments on commit 65b8e1b

Please sign in to comment.