Question:
How can I override an element of a partial
when that partial consists of an array?
Example:
Given the partial below, I want to override the partial’s second element (i.e. {"partial_element_2": "some content"}
) when I apply that partial. Is it possible to access and override this element via an index?
// the partial
"partials": [
{
"id": "dummyPartial",
"partial": [
{"partial_element_1": "some content"},
{"partial_element_2": "some content"},
{"partial_element_3": "some content"},
]
}
]
// elsewhere in the App where I use the above partial
"@whatever": {
"partial": "dummyPartial",
"override": {
// here I want to override the second element in `dummyPartial`
}
}
}