Skip to content

Commit

Permalink
Fix ssr error
Browse files Browse the repository at this point in the history
  • Loading branch information
cetincakiroglu committed Apr 26, 2023
1 parent 4adc9a6 commit 38d4df3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/app/components/fileupload/fileupload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -719,8 +719,10 @@ export class FileUpload implements AfterViewInit, AfterContentInit, OnInit, OnDe

ngOnDestroy() {
if (this.content && this.content.nativeElement) {
this.dragOverListener();
this.dragOverListener = null;
if(this.dragOverListener) {
this.dragOverListener();
this.dragOverListener = null;
}
}

if (this.translationSubscription) {
Expand Down

1 comment on commit 38d4df3

@vercel
Copy link

@vercel vercel bot commented on 38d4df3 Apr 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.