Skip to content

Commit fcf718f

Browse files
committed
fix: TT-24 Solving code smell problem and some fail test
1 parent bc003eb commit fcf718f

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/app/modules/customer-management/components/projects/components/project-list/project-list.component.spec.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@ describe('ProjectListComponent', () => {
174174
name: 'BK',
175175
description: 'test',
176176
};
177-
const id = '1234';
178177
component.projectsTypes = [nameType];
179178
fixture.detectChanges();
180179
fixture.whenStable().then(() => {

src/app/modules/customer-management/components/projects/components/project-list/project-list.component.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ export class ProjectListComponent implements OnInit, OnDestroy {
7070

7171
ngOnDestroy() {
7272
this.projectsSubscription.unsubscribe();
73-
this.projectTypesSubscription.unsubscribe();
73+
if (this.projectTypesSubscription){
74+
this.projectTypesSubscription.unsubscribe();
75+
}
7476
}
7577

7678
getProjectType(typeId: string) {

0 commit comments

Comments
 (0)