From e242d5222e5ba2b6d239c987403781d2f8b563ee Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Mon, 10 May 2021 15:09:49 +0200 Subject: [PATCH] Fix TypeError in App.render() Fixes the following error: Uncaught (in promise) TypeError: activeBuffer is undefined --- components/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/app.js b/components/app.js index 6fb1304..766ab0b 100644 --- a/components/app.js +++ b/components/app.js @@ -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); }