Skip to content

Commit

Permalink
init (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
JYC-99 authored Dec 20, 2023
1 parent 5726000 commit dbda78d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/react-dag-editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"repository": {
"url": "https://github.com/microsoft/react-dag-editor.git"
},
"version": "0.4.1",
"version": "0.4.2",
"dependencies": {
"@fluentui/merge-styles": "^8.2.0",
"eventemitter3": "^4.0.7",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class ErrorBoundary extends React.Component<
}

const componentStackLines = this.state.errorInfo
? this.state.errorInfo.componentStack.split("\n")
? this.state.errorInfo.componentStack?.split("\n")
: [];

return (
Expand All @@ -63,7 +63,7 @@ export class ErrorBoundary extends React.Component<
<p>{`Error: ${this.state.error}`}</p>
<p>{`ErrorInfo: ${JSON.stringify(this.state.errorInfo)}`}</p>
<h2>Component Stack</h2>
{componentStackLines.map((line, index) => (
{(componentStackLines ?? []).map((line, index) => (
<p key={index}>{line}</p>
))}
</div>
Expand Down

0 comments on commit dbda78d

Please sign in to comment.