mirror of
https://git.sr.ht/~emersion/gamja
synced 2025-03-24 05:49:50 -04:00
Fix TypeError in App.render()
Fixes the following error: Uncaught (in promise) TypeError: activeBuffer is undefined
This commit is contained in:
parent
e6c58a121c
commit
e242d5222e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue