Skip to content

Commit

Permalink
make file picker more robust 🐛
Browse files Browse the repository at this point in the history
  • Loading branch information
Freymaurer committed Oct 9, 2024
1 parent 866f4c2 commit e72634a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/Client/Update/InterfaceUpdate.fs
Original file line number Diff line number Diff line change
Expand Up @@ -214,10 +214,12 @@ module Interface =
let mutable rowIndex = rowIndex
let cells = [|
for name in fileNames do
let c0 = model.SpreadsheetModel.ActiveTable.TryGetCellAt(columnIndex,rowIndex).Value
let cell = c0.UpdateMainField name
(columnIndex, rowIndex), cell
rowIndex <- rowIndex + 1
match model.SpreadsheetModel.ActiveTable.TryGetCellAt(columnIndex,rowIndex) with
| Some c ->
let cell = c.UpdateMainField name
(columnIndex, rowIndex), cell
rowIndex <- rowIndex + 1
| None -> ()
|]
let cmd = Spreadsheet.UpdateCells cells |> SpreadsheetMsg |> Cmd.ofMsg
model, cmd
Expand Down

0 comments on commit e72634a

Please sign in to comment.