Skip to content

Commit

Permalink
Use toOptionView
Browse files Browse the repository at this point in the history
  • Loading branch information
hugo-vrijswijk committed Oct 26, 2023
1 parent 94545d0 commit 39bfa20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion explore/src/main/scala/explore/Routing.scala
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ object Routing:
): VdomElement =
model
.zoom(RootModel.programSummaries)
.mapValue { (pss: View[ProgramSummaries]) =>
.toOptionView
.map { (pss: View[ProgramSummaries]) =>
render(UndoContext(model.zoom(RootModel.undoStacks), pss))
}
.toPot
Expand Down

0 comments on commit 39bfa20

Please sign in to comment.