this repo has no description

fix wrong behavior of noop prop in error boundary

Changed files
+1 -2
packages
core-extensions
src
common
webpackModules
+1 -2
packages/core-extensions/src/common/webpackModules/ErrorBoundary.tsx
···
const { noop, fallback: FallbackComponent, children, message } = this.props;
const { errored, error, componentStack } = this.state;
-
if (noop) return null;
if (FallbackComponent) return <FallbackComponent children={children} {...this.state} />;
if (errored) {
-
return (
+
return noop ? null : (
<div className={`moonlight-error-boundary`}>
<h3>{message ?? "An error occurred rendering this component:"}</h3>
<code className="hljs">{`${error}\n\nComponent stack:\n${componentStack}`}</code>