File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import { environment } from '../../environments/environment';
1919import { slideSidebarPadding } from '../shared/animations/slide' ;
2020import { MenuID } from '../shared/menu/menu-id.model' ;
2121import { getPageInternalServerErrorRoute } from '../app-routing-paths' ;
22+ import { hasValueOperator } from '../shared/empty.util' ;
2223
2324@Component ( {
2425 selector : 'ds-root' ,
@@ -63,8 +64,8 @@ export class RootComponent implements OnInit {
6364 ngOnInit ( ) {
6465 this . sidebarVisible = this . menuService . isMenuVisibleWithVisibleSections ( MenuID . ADMIN ) ;
6566
66- this . collapsedSidebarWidth = this . cssService . getVariable ( '--ds-collapsed-sidebar-width' ) ;
67- this . totalSidebarWidth = this . cssService . getVariable ( '--ds-total-sidebar-width' ) ;
67+ this . collapsedSidebarWidth = this . cssService . getVariable ( '--ds-collapsed-sidebar-width' ) . pipe ( hasValueOperator ( ) ) ;
68+ this . totalSidebarWidth = this . cssService . getVariable ( '--ds-total-sidebar-width' ) . pipe ( hasValueOperator ( ) ) ;
6869
6970 const sidebarCollapsed = this . menuService . isMenuCollapsed ( MenuID . ADMIN ) ;
7071 this . slideSidebarOver = combineLatestObservable ( [ sidebarCollapsed , this . windowService . isXsOrSm ( ) ] )
You can’t perform that action at this time.
0 commit comments