bug fixed

This commit is contained in:
병준 박 2019-10-15 18:28:01 +09:00
parent ac8acc2b5c
commit 43f937e74c

View File

@ -3,7 +3,8 @@ import {
OnInit, OnInit,
ViewChild, ViewChild,
ViewChildren, ViewChildren,
QueryList QueryList,
OnDestroy
} from '@angular/core'; } from '@angular/core';
import { Observable, combineLatest, Subscription } from 'rxjs'; import { Observable, combineLatest, Subscription } from 'rxjs';
@ -44,7 +45,7 @@ import { KEY_VER_INFO } from '@app/types/ver-info.type';
styleUrls: ['./group.component.scss'], styleUrls: ['./group.component.scss'],
animations: ucapAnimations animations: ucapAnimations
}) })
export class GroupComponent implements OnInit { export class GroupComponent implements OnInit, OnDestroy {
@ViewChild('groupExpansionPanel', { static: true }) @ViewChild('groupExpansionPanel', { static: true })
groupExpansionPanel: GroupExpansionPanelComponent; groupExpansionPanel: GroupExpansionPanelComponent;
@ -134,6 +135,12 @@ export class GroupComponent implements OnInit {
); );
} }
ngOnDestroy(): void {
if (!!this.loginResSubscription) {
this.loginResSubscription.unsubscribe();
}
}
async onClickGroupMenu(menuType: string) { async onClickGroupMenu(menuType: string) {
this.logger.debug('menuType', menuType); this.logger.debug('menuType', menuType);
switch (menuType) { switch (menuType) {