Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: TT-24 Solving code smell problem and some fail test
  • Loading branch information
lenshinoda committed May 14, 2021
commit fcf718fb3f6c4ab7d9b82e6495b5e857d506b326
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,6 @@ describe('ProjectListComponent', () => {
name: 'BK',
description: 'test',
};
const id = '1234';
component.projectsTypes = [nameType];
fixture.detectChanges();
fixture.whenStable().then(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ export class ProjectListComponent implements OnInit, OnDestroy {

ngOnDestroy() {
this.projectsSubscription.unsubscribe();
this.projectTypesSubscription.unsubscribe();
if (this.projectTypesSubscription){
this.projectTypesSubscription.unsubscribe();
}
}

getProjectType(typeId: string) {
Expand Down