mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-02-22 02:41:23 +01:00
fix deletewindow
This commit is contained in:
parent
efd1e3c189
commit
d7712da862
@ -181,7 +181,7 @@ func (svc *WindowService) CloseWindow(ctx context.Context, windowId string) erro
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("error getting client: %w", err)
|
return fmt.Errorf("error getting client: %w", err)
|
||||||
}
|
}
|
||||||
utilfn.RemoveElemFromSlice(client.WindowIds, windowId)
|
client.WindowIds = utilfn.RemoveElemFromSlice(client.WindowIds, windowId)
|
||||||
err = wstore.DBUpdate(ctx, client)
|
err = wstore.DBUpdate(ctx, client)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return fmt.Errorf("error updating client: %w", err)
|
return fmt.Errorf("error updating client: %w", err)
|
||||||
|
Loading…
Reference in New Issue
Block a user