Skip to content

Commit

Permalink
example: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
szuperaz committed Sep 11, 2024
1 parent e882781 commit d8dee95
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions docusaurus/docs/Angular/code-examples/responsive-layout.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -211,13 +211,13 @@ Lastly, implement auto close behavior for the channel list:

```ts
closeMenu() {
let isChannelQuieryInProgress = false;
let isChannelQueryInProgress = false;
this.channelService.channelQueryState$.pipe(take(1)).subscribe((state) => {
if (state?.state === 'in-progress') {
isChannelQuieryInProgress = true;
isChannelQueryInProgress = true;
}
});
if (!isChannelQuieryInProgress) {
if (!isChannelQueryInProgress) {
this.isMenuOpen = false;
}
}
Expand Down
6 changes: 3 additions & 3 deletions projects/sample-app/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,13 @@ export class AppComponent implements AfterViewInit {
}

closeMenu() {
let isChannelQuieryInProgress = false;
let isChannelQueryInProgress = false;
this.channelService.channelQueryState$.pipe(take(1)).subscribe((state) => {
if (state?.state === 'in-progress') {
isChannelQuieryInProgress = true;
isChannelQueryInProgress = true;
}
});
if (!isChannelQuieryInProgress) {
if (!isChannelQueryInProgress) {
this.isMenuOpen = false;
}
}
Expand Down

0 comments on commit d8dee95

Please sign in to comment.