Skip to content

Commit

Permalink
fix(portal): set valid breakpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
pelord committed Mar 18, 2024
1 parent 4196175 commit 639649d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions src/app/pages/portal/portal.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ import {
debounceTime,
distinctUntilChanged,
skipWhile,
take,
tap
take
} from 'rxjs/operators';
import { EnvironmentOptions } from 'src/environments/environnement.interface';

Expand Down Expand Up @@ -172,10 +171,7 @@ export class PortalComponent implements OnInit, AfterContentInit, OnDestroy {
this.languageService.translate.instant('legend.open');
this.breakpoint$ = this.breakpointObserver
.observe(this.mobileBreakPoint)
.pipe(
tap(() => {}),
distinctUntilChanged()
);
.pipe(distinctUntilChanged());
}

ngOnInit() {
Expand Down
2 changes: 1 addition & 1 deletion src/config/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"importExport": {
"url": "/apis/ogre"
},
"mobileBreakPoint": "'(min-width: 768px)'",
"mobileBreakPoint": "(min-width: 768px)",
"language": {
"prefix": [
"./locale/"
Expand Down

0 comments on commit 639649d

Please sign in to comment.