From 81329586aa4303215d98ac3a6aa223f3e25cfdf4 Mon Sep 17 00:00:00 2001 From: Kurt Date: Wed, 2 Oct 2024 16:06:07 +0200 Subject: [PATCH] add back ErrorBoundary constructor (#3668) * add back constructor * lint --- packages/builder/src/components/ErrorBoundary.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/builder/src/components/ErrorBoundary.tsx b/packages/builder/src/components/ErrorBoundary.tsx index e8b5fce5f8..c78076d899 100644 --- a/packages/builder/src/components/ErrorBoundary.tsx +++ b/packages/builder/src/components/ErrorBoundary.tsx @@ -10,6 +10,11 @@ interface State { } class ErrorBoundary extends React.Component { + constructor(props: Props) { + super(props); + this.state = { hasError: false }; + } + static getDerivedStateFromError() { return { hasError: true }; }