aboutsummaryrefslogtreecommitdiffstats
path: root/src/app/test/test.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/test/test.component.ts')
-rw-r--r--src/app/test/test.component.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/app/test/test.component.ts b/src/app/test/test.component.ts
index 411b057..a7516ec 100644
--- a/src/app/test/test.component.ts
+++ b/src/app/test/test.component.ts
@@ -148,7 +148,7 @@ export class TestComponent implements OnInit {
this.enableBrowse = true;
this.enableTestButton = true;
this.enablePollButton = true;
- this.subscribe.unsubscribe();
+ if (this.subscribe && this.subscribe != undefined) this.subscribe.unsubscribe();
}
@@ -387,7 +387,7 @@ processUploadedFile(arrData) {
this.enableTestButton = true;
this.enablePollButton = true;
this.enableCounterDiv = false;
- this.subscribe.unsubscribe();
+ if (this.subscribe && this.subscribe != undefined) this.subscribe.unsubscribe();
});
@@ -449,11 +449,11 @@ processUploadedFile(arrData) {
this.status = status;
this.statusReason = statusReason;
if (status.toUpperCase() === 'SUCCESS' || status.toUpperCase() === 'SUCCESSFUL') {
- this.subscribe.unsubscribe();
+ if (this.subscribe && this.subscribe != undefined) this.subscribe.unsubscribe();
this.enablePollButton = true;
}
if (status.toUpperCase() === 'FAILED') {
- this.subscribe.unsubscribe();
+ if (this.subscribe && this.subscribe != undefined) this.subscribe.unsubscribe();
this.enablePollButton = true;
}
}
@@ -468,7 +468,7 @@ processUploadedFile(arrData) {
this.showStatusResponseDiv = false;
this.errorResponse = 'Error Connecting to APPC server';
this.enableCounterDiv = false;
- this.subscribe.unsubscribe();
+ if (this.subscribe && this.subscribe != undefined) this.subscribe.unsubscribe();
});
}