From 4511d7d522d278086ab823e1499971240fbbf659 Mon Sep 17 00:00:00 2001 From: David Wheatley Date: Fri, 10 Sep 2021 21:10:14 +0100 Subject: [PATCH] Fix correctly cast `this.constructor` calls --- js/src/common/Component.ts | 4 ++-- js/src/common/components/Modal.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/js/src/common/Component.ts b/js/src/common/Component.ts index 09b91b0197..3659eae665 100644 --- a/js/src/common/Component.ts +++ b/js/src/common/Component.ts @@ -138,13 +138,13 @@ export default abstract class Component = return (
- {(this.constructor as any).isDismissible && ( + {(this.constructor as typeof Modal).isDismissible && (
{Button.component({ icon: 'fas fa-times',