The fuck was that...
@@ -4,6 +4,7 @@ import './Log.css';
import {AutoSizer, List as VirtualList} from 'react-virtualized';
import AU from 'ansi_up';
import _ from 'lodash';
+import {pusherRunSlug} from '../util/runhelpers';
let unsubscribe;
try {
@@ -30,7 +31,8 @@ class Log extends React.Component {
return losses;
}
- componentWillUnMunt() {
+ componentWillUnmount() {
+ unsubscribe(pusherRunSlug(this.props.match.params));
unsubscribe('logs-' + this.props.match.params.run);
}
