Refactor & add error reporing

This commit is contained in:
Thomas Nordquist
2019-01-19 16:48:36 +01:00
parent f3a686b23f
commit b23ffd334d
13 changed files with 1161 additions and 272 deletions

View File

@@ -90,7 +90,6 @@ class Tree extends React.Component<Props, TreeState> {
}
private handleNewData = (msg: any) => {
console.log('new data')
const edges = msg.topic.split('/')
const node = q.TreeNodeFactory.fromEdgesAndValue(edges, Buffer.from(msg.payload, 'base64').toString())
this.state.tree.updateWithNode(node.firstNode())