Clear table on new top start (#1687)

Closes #1683

Signed-off-by: Mathis Wiehl <mathis.wiehl@sinnerschrader.com>
This commit is contained in:
Mathis Wiehl 2018-09-19 22:05:32 +02:00 committed by Risha Mars
parent 8ab9b4981b
commit 30e6930a37
1 changed files with 3 additions and 0 deletions

View File

@ -292,6 +292,9 @@ class TopModule extends React.Component {
}
startTapStreaming() {
this.tapResultsById = {};
this.topEventIndex = {};
let protocol = window.location.protocol === "https:" ? "wss" : "ws";
let tapWebSocket = `${protocol}://${window.location.host}${this.props.pathPrefix}/api/tap`;