Skip to content

Commit

Permalink
Merge pull request #163 from liam-hq/default-value-display-condition
Browse files Browse the repository at this point in the history
Display the block even if `column.default` is JS falsy(and non-null)  value (for example, 0)
  • Loading branch information
MH4GF authored Dec 5, 2024
2 parents 82bb8d1 + 73d8868 commit ef2605c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const ColumnsItem: FC<Props> = ({ column }) => {
<dt className={styles.dt}>Type</dt>
<dd className={styles.dd}>{column.type}</dd>
</div>
{column.default && (
{column.default !== null && (
<div className={styles.dlItem}>
<dt className={styles.dt}>Default</dt>
<dd className={styles.dd}>{column.default}</dd>
Expand Down

0 comments on commit ef2605c

Please sign in to comment.