Skip to content

Commit

Permalink
Fix cell select not removed when switching active view 🐛#349
Browse files Browse the repository at this point in the history
  • Loading branch information
Freymaurer committed Feb 1, 2024
1 parent 36e65dd commit c5d41d5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Client/Update/SpreadsheetUpdate.fs
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,11 @@ module Spreadsheet =
{state with ArcFile = state.ArcFile}
nextState, model, Cmd.none
| UpdateActiveView nextView ->
let nextState = { state with ActiveView = nextView }
let nextState = {
state with
ActiveView = nextView
SelectedCells = Set.empty
}
nextState, model, Cmd.none
| RemoveTable removeIndex ->
let nextState = Controller.removeTable removeIndex state
Expand Down

0 comments on commit c5d41d5

Please sign in to comment.