mirror of
https://codeberg.org/emersion/gamja.git
synced 2024-11-15 03:15:01 -05: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() {
|
render() {
|
||||||
var activeBuffer = null, activeNetwork = null;
|
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);
|
activeBuffer = this.state.buffers.get(this.state.activeBuffer);
|
||||||
activeNetwork = this.state.networks.get(activeBuffer.network);
|
activeNetwork = this.state.networks.get(activeBuffer.network);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue