mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 16:01:06 +08:00
fix: resolve issue when inspecting null
This commit is contained in:
parent
077509c50e
commit
95bcd71511
@ -81,7 +81,7 @@ class Inspect extends React.Component<{ name?: string; value: any }, { expanded:
|
||||
</View>
|
||||
);
|
||||
}
|
||||
if (typeof value === 'object' && !(value instanceof RegExp)) {
|
||||
if (value && typeof value === 'object' && !(value instanceof RegExp)) {
|
||||
if (name) {
|
||||
return (
|
||||
<>
|
||||
|
Loading…
x
Reference in New Issue
Block a user