Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ERROR TypeError: Cannot read properties of undefined (reading 'unsubscribe') #35

Open
varund29 opened this issue Mar 18, 2024 · 0 comments

Comments

@varund29
Copy link

Hi, getting below error when navigation between components

ERROR TypeError: Cannot read properties of undefined (reading 'unsubscribe')

ngOnDestroy() {
this.filteredReturn.emit(this.array);
this.searchFormValueChangesSubscription.unsubscribe();
}

ERROR TypeError: Cannot read properties of undefined (reading 'unsubscribe')
    at MatSelectFilterComponent.ngOnDestroy (mat-select-filter.js:104:1)
    at executeOnDestroys (core.js:9261:1)
    at cleanUpView (core.js:9185:1)
    at destroyViewTree (core.js:9018:1)
    at destroyLView (core.js:9163:1)
    at ViewContainerRef.remove (core.js:10273:1)
    at ViewContainerRef.clear (core.js:10180:1)
    at NgIf._updateView (common.js:3467:1)
    at set ngIf (common.js:3444:1)
    at setInputsForProperty (core.js:8851:1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant