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); }