Fix index-out-of-bounds bug with DefaultComponentContext#getAllAncestors.

This commit is contained in:
Jesse Brault 2025-05-31 23:29:28 -05:00
parent 3202e51d7f
commit 13f85325a1

View File

@ -97,8 +97,7 @@ public class DefaultComponentContext implements ComponentContext {
@Override
public List<ViewComponent> getAllAncestors() {
final List<ViewComponent> componentStack = this.getRenderContext().getComponentStack();
return componentStack.subList(1, componentStack.size());
return this.renderContext.getComponentStack();
}
}