Skip to content

Commit

Permalink
Don't show undefined parameter values in block editor
Browse files Browse the repository at this point in the history
  • Loading branch information
m-mohr committed May 18, 2021
1 parent e9d7f12 commit 7d98303
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/blocks/BlockParameter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export default {
displayValue() {
var maxLength = 25 - this.displayLabel.length;
var formattedValue = null;
if (this.isEditable && !this.state.compactMode && !Utils.isRef(this.value)) {
if (this.isEditable && !this.state.compactMode && !Utils.isRef(this.value) && typeof this.value !== 'undefined') {
formattedValue = this.formatValue(this.value, maxLength, true);
}
Expand Down

0 comments on commit 7d98303

Please sign in to comment.