5241 - [Preview] Show empty values#5279
Conversation
|
|
||
| renderPreview() { | ||
| const { value } = this.props; | ||
| if (!value) { |
There was a problem hiding this comment.
Found this is a regression from PR #4915
In that PR, added one if (!value) early return[1] so this.renderSimplePreview(value) below for simple typed value, such "", 0, null, wouldn't be reached.
There was a problem hiding this comment.
Mind leaving a comment so it becomes obvious that there should not be an early return because this breaks things?
There was a problem hiding this comment.
@nyrosmith That helps in the future. Added
|
Looking good to me, just need to hack it to please flow, |
e990387 to
4649c08
Compare
Thanks for reminding this improvement. |
4649c08 to
f1a1662
Compare
Associated Issue: #5241
Screenshots/Videos