From 85a7e0f88cdc5ee7310f352e138bfac138d0fcd2 Mon Sep 17 00:00:00 2001 From: "D. Gopal Krishna" Date: Tue, 26 Dec 2023 00:16:05 +0530 Subject: [PATCH] #793 fix error boundary prevstate --- .../osb-portal/src/components/handlers/OSBErrorBoundary.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/applications/osb-portal/src/components/handlers/OSBErrorBoundary.tsx b/applications/osb-portal/src/components/handlers/OSBErrorBoundary.tsx index 8717a6a3..21ff4a5a 100644 --- a/applications/osb-portal/src/components/handlers/OSBErrorBoundary.tsx +++ b/applications/osb-portal/src/components/handlers/OSBErrorBoundary.tsx @@ -68,7 +68,7 @@ class OSBErrorBoundary extends React.Component if (nextProps.error) { return { ...prevState, hasError: 'true', message: nextProps.error }; } - return null; + return { ...prevState }; } render() {