🐛 Fix corner case of chained switch and libraries (#7008)

This commit is contained in:
Pablo Alba 2025-07-30 08:44:27 +02:00 committed by GitHub
parent 44daa1cf65
commit 7553d68100
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -156,10 +156,8 @@
;; The original-shape is in a copy. For the relation rules, we need the referenced
;; shape on the main component
orig-ref-shape (ctf/find-ref-shape nil container libraries original-shape)
orig-ref-objects (-> (ctf/get-component-container-from-head orig-ref-shape libraries)
:objects)
orig-ref-shape (ctf/find-ref-shape nil container libraries original-shape {:with-context? true})
orig-ref-objects (:objects (:container (meta orig-ref-shape)))
;; Adds a :shape-path attribute to the children of the orig-ref-shape,
;; that contains the type of its ancestors and its name