Remove "empty payload" toggle switch

This function is redundat, simply send an empty message wil suffice
This commit is contained in:
Thomas Nordquist
2019-01-20 12:54:54 +01:00
parent 4d794205d5
commit ab83c682ac
4 changed files with 5 additions and 41 deletions

View File

@@ -67,7 +67,8 @@ class TreeNodeTitle extends React.Component<TreeNodeProps, {}> {
marginLeft: '5px',
display: 'inline-block',
}
return this.props.treeNode.message
return this.props.treeNode.message && this.props.treeNode.message.length > 0
? <span style={style}> = {this.props.treeNode.message.value.toString()}</span>
: null
}