cat-documents-ng 0.3.62 → 0.3.63

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3385,6 +3385,13 @@ class DocumentUploadComponent {
3385
3385
  this.formService = formService;
3386
3386
  this.dataService = dataService;
3387
3387
  }
3388
+ /**
3389
+ * Lifecycle hook called after inputs are initialized.
3390
+ * Ensures no stale uploads are shown when navigating back.
3391
+ */
3392
+ ngOnInit() {
3393
+ this.resetForm();
3394
+ }
3388
3395
  /**
3389
3396
  * Handles changes in assignment type selection.
3390
3397
  * Resets form selections, loads categories, and handles applicant loading.
@@ -3780,6 +3787,8 @@ class DocumentUploadComponent {
3780
3787
  * Cleans up subscriptions and destroys services.
3781
3788
  */
3782
3789
  ngOnDestroy() {
3790
+ console.log("destroyed");
3791
+ this.resetUpload();
3783
3792
  this.destroy$.next();
3784
3793
  this.destroy$.complete();
3785
3794
  this.businessService.destroy();