Skip to content

Commit

Permalink
fix: update jsonSchemaPropsDecorator to handle props with a default v…
Browse files Browse the repository at this point in the history
…alue of zero
  • Loading branch information
sghoweri committed Apr 16, 2020
1 parent 2554744 commit 660a2a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/base-element/src/lib/decorators.js
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ const jsonSchemaPropsDecorator = clazz => {
// @todo: skip any twig only schema properties such as `attributes`, `content`, `items`
const propName = camelCase(key);

if (property.default) {
if (property.default || property.default === 0) {
this.defaultProps[propName] = property.default;
}

Expand Down

0 comments on commit 660a2a7

Please sign in to comment.