diff --git a/src/Renderer/DrawBlock/Sheet.fs b/src/Renderer/DrawBlock/Sheet.fs index 2d03e0453..878232426 100644 --- a/src/Renderer/DrawBlock/Sheet.fs +++ b/src/Renderer/DrawBlock/Sheet.fs @@ -366,7 +366,11 @@ let isAllVisible (model: Model)(conns: ConnectionId list) (comps: ComponentId li |> List.fold (&&) true let cVisible = comps - |> List.map (Symbol.getOneBoundingBox model.Wire.Symbol) + |> List.collect (fun comp -> + if Map.containsKey comp model.Wire.Symbol.Symbols then + [Symbol.getOneBoundingBox model.Wire.Symbol comp] + else + []) |> List.map isBBoxAllVisible |> List.fold (&&) true wVisible && cVisible