diff --git a/src/elm/Pages/Org_/Repo_/Build_.elm b/src/elm/Pages/Org_/Repo_/Build_.elm index ff78134f1..91b751220 100644 --- a/src/elm/Pages/Org_/Repo_/Build_.elm +++ b/src/elm/Pages/Org_/Repo_/Build_.elm @@ -487,7 +487,7 @@ update shared route msg model = -- hash will change when no line is selected and the selected group changes -- this means expansion msg will double up on fetching logs unless instructed not to - willHashChange = + willFocusChange = case ( model.focus.group, model.focus.a, model.focus.b ) of ( Just g, Nothing, _ ) -> g /= options.step.number @@ -504,7 +504,7 @@ update shared route msg model = -- triggered by a click that will change the hash -- the focus changes and the logs are not loaded fetchLogs = - not (options.triggeredFromClick && willHashChange) + not (options.triggeredFromClick && willFocusChange) && ((didFocusChange && not isLogLoaded) || not isFromHashChanged) getLogEffect = diff --git a/src/elm/Pages/Org_/Repo_/Build_/Services.elm b/src/elm/Pages/Org_/Repo_/Build_/Services.elm index 122261a74..67249ab72 100644 --- a/src/elm/Pages/Org_/Repo_/Build_/Services.elm +++ b/src/elm/Pages/Org_/Repo_/Build_/Services.elm @@ -478,7 +478,7 @@ update shared route msg model = -- hash will change when no line is selected and the selected group changes -- this means the expansion msg will double up on fetching logs unless instructed not to - willHashChange = + willFocusChange = case ( model.focus.group, model.focus.a, model.focus.b ) of ( Just g, Nothing, _ ) -> g /= options.service.number @@ -495,7 +495,7 @@ update shared route msg model = -- triggered by a click that will change the hash -- the focus changes and the logs are not loaded fetchLogs = - not (options.triggeredFromClick && willHashChange) + not (options.triggeredFromClick && willFocusChange) && ((didFocusChange && not isLogLoaded) || not isFromHashChanged) getLogEffect =