mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 14:13:37 +08:00
removes erroniously present comment (#21792)
This comment was an accidental copy/pasta from https://reactjs.org/docs/error-boundaries.html. Also, it is inaccurate since the user (i.e. AntD user) cannot actually render any fallback component.
This commit is contained in:
parent
8527340a2a
commit
fd9bc6caa0
@ -33,7 +33,6 @@ export default class ErrorBoundary extends React.Component<
|
||||
const errorMessage = typeof message === 'undefined' ? (error || '').toString() : message;
|
||||
const errorDescription = typeof description === 'undefined' ? componentStack : description;
|
||||
if (error) {
|
||||
// You can render any custom fallback UI
|
||||
return (
|
||||
<Alert type="error" message={errorMessage} description={<pre>{errorDescription}</pre>} />
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user