Fix buffer not removed in close()

This commit is contained in:
Simon Ser 2021-03-03 09:59:40 +01:00
parent ae914d4106
commit 3ece5f1ca5

View file

@ -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 };
});