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:
Dimitri Mitropoulos 2020-03-02 21:44:24 -05:00 committed by GitHub
parent 8527340a2a
commit fd9bc6caa0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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