Skip to content

Commit

Permalink
Merge branch 'hotfix/23.09-path'
Browse files Browse the repository at this point in the history
  • Loading branch information
myrho committed Dec 6, 2023
2 parents ccb654d + 1ec65cd commit 9bf4dea
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 additions & 2 deletions src/Update/Graph.elm
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,32 @@ addAddress plugins uc { address, entity, incoming, outgoing, anchor } model =
model

added =
Layer.addAddress plugins uc newModel.config.colors address newModel.layers
-- grab the added entities ...
eff
|> List.foldl
(\ef entityIds ->
case ef of
InternalGraphAddedEntitiesEffect ids ->
Set.union entityIds ids

_ ->
entityIds
)
Set.empty
-- ... and add the address to them
|> Set.foldl
(\entityId added_ ->
Layer.addAddressAtEntity plugins
uc
entityId
address
added_
)
{ colors = newModel.config.colors
, layers = newModel.layers
, new = Set.empty
, repositioned = Set.empty
}

newModel_ =
{ newModel
Expand Down Expand Up @@ -323,7 +348,7 @@ updateByMsg plugins uc msg model =
n model

InternalGraphSelectedAddress id ->
loadNextAddress plugins uc model id
n model

-- handled upstream
BrowserGotBrowserElement result ->
Expand Down

0 comments on commit 9bf4dea

Please sign in to comment.