From 6c4b43fc114457e59ba2df82a2f7d61c9a8fce87 Mon Sep 17 00:00:00 2001 From: davidvader Date: Mon, 5 Feb 2024 08:25:33 -0600 Subject: [PATCH] refactor: fix graph, clear on failure --- src/elm/Pages/Org_/Repo_/Build_/Graph.elm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/elm/Pages/Org_/Repo_/Build_/Graph.elm b/src/elm/Pages/Org_/Repo_/Build_/Graph.elm index 1435245e2..07f00454a 100644 --- a/src/elm/Pages/Org_/Repo_/Build_/Graph.elm +++ b/src/elm/Pages/Org_/Repo_/Build_/Graph.elm @@ -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 ->