Skip to content

Commit

Permalink
Update ErrorBoundary.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-Cena authored May 26, 2022
1 parent 4c698b6 commit 3b96739
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/docusaurus/src/client/exports/ErrorBoundary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default class ErrorBoundary extends React.Component<Props, State> {
error,
tryAgain: () => this.setState({error: null}),
};
const fallback: FallbackFunction = this.props.fallback || DefaultFallback;
const fallback: FallbackFunction = this.props.fallback ?? DefaultFallback;
return fallback(fallbackParams);
}

Expand Down

0 comments on commit 3b96739

Please sign in to comment.