File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
src/packages/core/workspace/components/workspace-editor Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -71,11 +71,7 @@ export class UmbWorkspaceEditorElement extends UmbLitElement {
71
71
} as UmbRoute ;
72
72
} ) ;
73
73
74
- newRoutes . push ( {
75
- path : '' ,
76
- redirectTo : newRoutes [ 0 ] ?. path ,
77
- } ) ;
78
-
74
+ newRoutes . push ( { ...newRoutes [ 0 ] , path : '' } ) ;
79
75
}
80
76
81
77
newRoutes . push ( {
@@ -116,11 +112,12 @@ export class UmbWorkspaceEditorElement extends UmbLitElement {
116
112
${ repeat (
117
113
this . _workspaceViews ,
118
114
( view ) => view . alias ,
119
- ( view ) => html `
115
+ ( view , index ) => html `
120
116
<uui- tab
121
117
href= "${ this . _routerPath } /view/${ view . meta . pathname } "
122
118
.label = "${ view . meta . label ? this . localize . string ( view . meta . label ) : view . name } "
123
- ?active= ${ 'view/' + view . meta . pathname === this . _activePath } >
119
+ ?active= ${ 'view/' + view . meta . pathname === this . _activePath ||
120
+ ( index === 0 && this . _activePath === '' ) } >
124
121
<umb- icon slot= "icon" name = ${ view . meta . icon } > </ umb- icon>
125
122
${ view . meta . label ? this . localize . string ( view . meta . label ) : view . name }
126
123
</ uui- tab>
You can’t perform that action at this time.
0 commit comments