diff options
author | KrupaNagabhushan <krupa.nagabhushan@est.tech> | 2023-01-18 09:27:00 +0000 |
---|---|---|
committer | Vasyl Razinkov <vasyl.razinkov@est.tech> | 2023-01-18 14:32:50 +0000 |
commit | 96c058ae4b94d864cd4e6e4ac2ed50bb2d1506c9 (patch) | |
tree | 6a452e7bf8aa6658798295692f1445062a35c009 /catalog-ui/src/app/ng2 | |
parent | 035ad742f60bdb375ee4e2da4345d404949a19b4 (diff) |
Fix datatype opens up from wrong menuItem
Issue-ID: SDC-4335
Signed-off-by: KrupaNagabhushan <krupa.nagabhushan@est.tech>
Change-Id: I3700c6db718edb1a125913c2a88f6063be2c5c98
Diffstat (limited to 'catalog-ui/src/app/ng2')
-rw-r--r-- | catalog-ui/src/app/ng2/components/layout/top-nav/top-nav.component.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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'] |