Skip to content

Commit

Permalink
fixes #61
Browse files Browse the repository at this point in the history
  • Loading branch information
samdenty committed Oct 13, 2020
1 parent d330305 commit 9acd017
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Component/react-inspector/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ class CustomInspector extends React.PureComponent<Props, any> {
</span>
)

if (data instanceof Error) return <ErrorPanel error={data.stack} />
if (data instanceof Error && typeof data.stack === 'string') {
return <ErrorPanel error={data.stack} />
}

if (constructor === 'Promise')
return (
Expand Down

0 comments on commit 9acd017

Please sign in to comment.