I am using the following code to site edit the component links(multi-allowed field).
@foreach(var comp in Fields.leader_list) {
<tcdl:ComponentField name="Fields.leader_list" index="@comp.Index">
...
</tcdl:ComponentField>
}
I am able to publish the page and the span tag in the source for the field is (seems to be correct) where leader_list
is the field having the comp links:
<!-- Start Component Field: {"XPath" : "tcm:Content/custom:Content/custom:leader_list[1]"} -->
Now once I update the comp links and click "Update Preview", the components are getting updated in tridion but it's throwing the below error while publishing the component:
"Cannot perform runtime binding on null reference"
Please provide a direction.