Skip to content

Commit

Permalink
refactor: fix graph, clear on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
plyr4 committed Feb 5, 2024
1 parent 1e1e1e9 commit 6c4b43f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/elm/Pages/Org_/Repo_/Build_/Graph.elm
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,10 @@ update shared route msg model =

Err error ->
( { model | graph = Utils.Errors.toFailure error }
, Effect.handleHttpError { httpError = error }
, Effect.batch
[ Effect.handleHttpError { httpError = error }
, clearBuildGraph |> Effect.sendCmd
]
)

Refresh options ->
Expand Down

0 comments on commit 6c4b43f

Please sign in to comment.