fix sleeve memory bug

This commit is contained in:
Olivier Gagnon
2021-09-08 23:47:34 -04:00
parent bada8a5f39
commit 2a13db39c7
360 changed files with 5424 additions and 15764 deletions
+2 -6
View File
@@ -59,9 +59,7 @@ export class ErrorBoundary extends React.Component<IProps, IState> {
componentWillUnmount(): void {
if (this.hasEventEmitter()) {
(this.props.eventEmitterForReset as EventEmitter).removeSubscriber(
this.props.id as string,
);
(this.props.eventEmitterForReset as EventEmitter).removeSubscriber(this.props.id as string);
}
}
@@ -78,9 +76,7 @@ export class ErrorBoundary extends React.Component<IProps, IState> {
if (this.state.hasError) {
return (
<div style={styleMarkup}>
<p>
{`Error rendering UI. This is (probably) a bug. Please report to game developer.`}
</p>
<p>{`Error rendering UI. This is (probably) a bug. Please report to game developer.`}</p>
<p>{`In the meantime, try refreshing the game WITHOUT saving.`}</p>
<p>{`Error info: ${this.state.errorInfo}`}</p>
</div>