From 96c058ae4b94d864cd4e6e4ac2ed50bb2d1506c9 Mon Sep 17 00:00:00 2001 From: KrupaNagabhushan Date: Wed, 18 Jan 2023 09:27:00 +0000 Subject: Fix datatype opens up from wrong menuItem Issue-ID: SDC-4335 Signed-off-by: KrupaNagabhushan Change-Id: I3700c6db718edb1a125913c2a88f6063be2c5c98 --- catalog-ui/src/app/ng2/components/layout/top-nav/top-nav.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'catalog-ui/src/app') 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'] -- cgit 1.2.3-korg