From 3b96739fa4a191a40b08a9da0fc199cd72494ea2 Mon Sep 17 00:00:00 2001 From: Joshua Chen Date: Thu, 26 May 2022 18:39:04 +0800 Subject: [PATCH] Update ErrorBoundary.tsx --- packages/docusaurus/src/client/exports/ErrorBoundary.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/docusaurus/src/client/exports/ErrorBoundary.tsx b/packages/docusaurus/src/client/exports/ErrorBoundary.tsx index 6cad5ad0bde2..0d188d4da44b 100644 --- a/packages/docusaurus/src/client/exports/ErrorBoundary.tsx +++ b/packages/docusaurus/src/client/exports/ErrorBoundary.tsx @@ -44,7 +44,7 @@ export default class ErrorBoundary extends React.Component { error, tryAgain: () => this.setState({error: null}), }; - const fallback: FallbackFunction = this.props.fallback || DefaultFallback; + const fallback: FallbackFunction = this.props.fallback ?? DefaultFallback; return fallback(fallbackParams); }