mirror of
https://codeberg.org/emersion/gamja
synced 2025-03-12 23:43:42 +01: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
@ -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…
x
Reference in New Issue
Block a user