archesproject / arches-her

6 stars 12 forks source link

Consultation editor - card template in node tree not rendering correctly #1186

Closed aj-he closed 4 months ago

aj-he commented 4 months ago

When editing a consultation location node, the card templates in the tree fail to render...

Image

It appears to do with the related-resources-map card template - but it is not an issue when looking at it in the graph designer. It could be that it is only an issue with data?

aj-he commented 4 months ago

The card tree renders correctly in the graph designer, but not in the resource editor. Looks like the cards might be in the wrong order in the resource editor and breaking in the image above, the graph designer has the Consultation Location card, but the editor is being passed the Current Basemap card

aj-he commented 4 months ago

Issue traced to a commit 2 years ago. Changing the self.form.cardComponentLookup[self.card.model.component_id()].componentname on line 68 back to self.form.cardComponentLookup[card.model.component_id()].componentname (removing the self. when getting the component_id() ) stops the issue from happening.

Image