fix deletewindow

This commit is contained in:
sawka 2024-07-31 18:02:36 -07:00
parent efd1e3c189
commit d7712da862

View File

@ -181,7 +181,7 @@ func (svc *WindowService) CloseWindow(ctx context.Context, windowId string) erro
if err != nil {
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)
if err != nil {
return fmt.Errorf("error updating client: %w", err)