aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--catalog-ui/src/app/ng2/components/layout/top-nav/top-nav.component.ts2
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']