mirror of
https://git.sr.ht/~emersion/gamja
synced 2024-11-14 19:25:26 -05:00
Fix buffer not removed in close()
This commit is contained in:
parent
ae914d4106
commit
3ece5f1ca5
1 changed files with 1 additions and 1 deletions
|
@ -757,7 +757,7 @@ export default class App extends Component {
|
|||
this.switchBuffer({ name: SERVER_BUFFER });
|
||||
this.setState((state) => {
|
||||
var buffers = new Map(state.buffers);
|
||||
buffers.delete(buf.name);
|
||||
buffers.delete(buf.id);
|
||||
return { buffers };
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue