Fix TypeError in App.render()

Fixes the following error:

    Uncaught (in promise) TypeError: activeBuffer is undefined
This commit is contained in:
Simon Ser 2021-05-10 15:09:49 +02:00
parent e6c58a121c
commit e242d5222e

View file

@ -926,7 +926,7 @@ export default class App extends Component {
render() {
var activeBuffer = null, activeNetwork = null;
if (this.state.activeBuffer) {
if (this.state.buffers.get(this.state.activeBuffer)) {
activeBuffer = this.state.buffers.get(this.state.activeBuffer);
activeNetwork = this.state.networks.get(activeBuffer.network);
}