Skip to content

Commit

Permalink
fix(gatsby-theme-docz): allow empty ts prop defaultValue
Browse files Browse the repository at this point in the history
  • Loading branch information
rakannimer committed Nov 26, 2019
1 parent 8f7b949 commit 2512aa1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/gatsby-theme-docz/src/components/Props/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import * as styles from './styles'

export const getDefaultValue = ({ defaultValue, type, flowType }) => {
const propType = flowType ? flowType : type
if (!defaultValue.value) return null
if (!defaultValue || !defaultValue.value) return null
if (defaultValue.value === "''") {
return '[Empty string]'
}
Expand Down

0 comments on commit 2512aa1

Please sign in to comment.