Skip to content

Commit

Permalink
Remove program time updates on programEdit
Browse files Browse the repository at this point in the history
  • Loading branch information
toddburnside committed Mar 11, 2024
1 parent cfd5cb8 commit fa572a4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions explore/src/main/scala/explore/cache/ProgramCache.scala
Original file line number Diff line number Diff line change
Expand Up @@ -192,10 +192,8 @@ object ProgramCache
ProgramQueriesGQL.ProgramEditDetailsSubscription
.subscribe[IO](props.programId.toProgramEditInput)
.map:
_.map: data => // Replace program and reset times.
ProgramSummaries.optProgramDetails.replace(data.programEdit.value.some) >>>
ProgramSummaries.programTimesPot.replace(Pot.pending)
.evalTap(_ => queryProgramTimes)
_.map: data => // Replace program.
ProgramSummaries.optProgramDetails.replace(data.programEdit.value.some)

val updateTargets: Resource[IO, Stream[IO, ProgramSummaries => ProgramSummaries]] =
TargetQueriesGQL.ProgramTargetsDelta
Expand Down

0 comments on commit fa572a4

Please sign in to comment.