Skip to content

Commit dbda78d

Browse files
authored
init (#143)
1 parent 5726000 commit dbda78d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/react-dag-editor/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"repository": {
55
"url": "https://github.com/microsoft/react-dag-editor.git"
66
},
7-
"version": "0.4.1",
7+
"version": "0.4.2",
88
"dependencies": {
99
"@fluentui/merge-styles": "^8.2.0",
1010
"eventemitter3": "^4.0.7",

packages/react-dag-editor/src/lib/components/ErrorBoundary/ErrorBoundary.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export class ErrorBoundary extends React.Component<
5454
}
5555

5656
const componentStackLines = this.state.errorInfo
57-
? this.state.errorInfo.componentStack.split("\n")
57+
? this.state.errorInfo.componentStack?.split("\n")
5858
: [];
5959

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

0 commit comments

Comments
 (0)