From d13464578a9a02dc744631118be1151beef6ca58 Mon Sep 17 00:00:00 2001 From: Nicolas Humblot Date: Thu, 29 Apr 2021 08:29:10 +0200 Subject: [PATCH] #99 Clear timeout --- src/views/vmd-rdv.view.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/views/vmd-rdv.view.ts b/src/views/vmd-rdv.view.ts index f49a09607..5777388ee 100644 --- a/src/views/vmd-rdv.view.ts +++ b/src/views/vmd-rdv.view.ts @@ -338,7 +338,11 @@ export abstract class AbstractVmdRdvView extends LitElement { disconnectedCallback() { super.disconnectedCallback(); - // console.log("disconnected callback") + + if (this.eligibilityCriteriaTimeout) { + clearTimeout(this.eligibilityCriteriaTimeout); + this.eligibilityCriteriaTimeout = undefined; + } } _onRefreshPageWhenValidParams(): "return"|"continue" {