From d1ca62a807e81b7125c93edd160e7448623addf8 Mon Sep 17 00:00:00 2001 From: Natty Date: Thu, 9 Nov 2023 17:17:46 +0100 Subject: [PATCH] Frontend: Fixed the null error in tooltips --- fe_calckey/frontend/client/src/directives/tooltip.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fe_calckey/frontend/client/src/directives/tooltip.ts b/fe_calckey/frontend/client/src/directives/tooltip.ts index 0e3ae3f..34e136c 100644 --- a/fe_calckey/frontend/client/src/directives/tooltip.ts +++ b/fe_calckey/frontend/client/src/directives/tooltip.ts @@ -118,6 +118,6 @@ export default { unmounted(el, binding, vn) { const self = el._tooltipDirective_; window.clearInterval(self.checkTimer); - self.close(); + if (self) self.close(); }, } as Directive;