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

fix(geo): check catalog watcher befor destroy #1612

Open
wants to merge 1 commit into
base: next
Choose a base branch
from

Conversation

aziz-access
Copy link
Contributor

@aziz-access aziz-access commented Jan 26, 2024

What is the current behavior? (You can also link to an open issue here)

What is the new behavior?

Does this PR introduce a breaking change? (check one with "x")

  • Yes
  • No

If this PR contains a breaking change, please describe the impact and migration path for existing applications:

Other information:

@aziz-access aziz-access added the bug Incorrect or unexpected behaviors // Anomalies de fonctionnement label Jan 26, 2024
@aziz-access aziz-access self-assigned this Jan 26, 2024
Comment on lines +103 to +105
if (this.watcher) {
this.watcher.destroy();
}
Copy link
Collaborator

@alecarn alecarn Jan 29, 2024

Choose a reason for hiding this comment

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

En regardant l'assignation du watcher dans le OnInit, je ne vois pas pourquoi le watcher pourrait être à undefined car il est synchrone. Ce n'est pas clair dans la documentation d'Angular si le OnDestroy peut court-circuter le OnInit.

Mais en regardant les breadcrumbs de Sentry, on voit qu'une autre erreur arrive avant celle-ci #1599. J'ai l'impression que cette dernière est la cause de l'erreur. Qu'est-ce que t'en pense?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Incorrect or unexpected behaviors // Anomalies de fonctionnement not ready
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CatalogBrowser - TypeError: Cannot read properties of undefined (reading 'destroy')
2 participants