From: KrupaNagabhushan Date: Wed, 18 Jan 2023 09:27:00 +0000 (+0000) Subject: Fix datatype opens up from wrong menuItem X-Git-Tag: 1.12.1~22 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F32%2F132932%2F2;p=sdc.git Fix datatype opens up from wrong menuItem Issue-ID: SDC-4335 Signed-off-by: KrupaNagabhushan Change-Id: I3700c6db718edb1a125913c2a88f6063be2c5c98 --- diff --git a/catalog-ui/src/app/ng2/components/layout/top-nav/top-nav.component.ts b/catalog-ui/src/app/ng2/components/layout/top-nav/top-nav.component.ts index 2b7be9cdeb..e350a711f2 100644 --- a/catalog-ui/src/app/ng2/components/layout/top-nav/top-nav.component.ts +++ b/catalog-ui/src/app/ng2/components/layout/top-nav/top-nav.component.ts @@ -88,7 +88,7 @@ export class TopNavComponent implements OnInit, OnChanges { //if it's a different state if (result === -1) { //if in 'workspace' - checking previous state param - if (this.$state.includes('workspace')) { + if (this.$state.includes('workspace') || this.$state.includes('type-workspace')) { // if previous state is 'dashboard' or 'catalog', then select it - otherwise, use 'catalog' as default for 'workspace' const selectedStateName = (['dashboard', 'catalog'].indexOf(this.$state.params['previousState']) !== -1) ? this.$state.params['previousState']