Skip to content

Commit

Permalink
fix: This node cannot be configured yet "sticks" to other node config…
Browse files Browse the repository at this point in the history
…urations, even though these can be configured

Fixes: #416
  • Loading branch information
igarashitm committed Nov 30, 2023
1 parent f0899f0 commit 6053359
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/ui/src/components/ErrorBoundary/ErrorBoundary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ interface ErrorBoundaryState {
}

export class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
private errorDisplayed = false;

constructor(props: ErrorBoundaryProps) {
super(props);
this.state = { hasError: false, isExpanded: false, error: undefined };
Expand All @@ -40,7 +42,8 @@ export class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundarySt
}

render() {
if (this.state.hasError) {
if (this.state.hasError && !this.errorDisplayed) {
this.errorDisplayed = true;
// You can render any custom fallback UI
return (
<>
Expand Down

0 comments on commit 6053359

Please sign in to comment.