Skip to content

Commit

Permalink
Remove "wrap ComponentReference in group"-thing. Don't think we need it
Browse files Browse the repository at this point in the history
  • Loading branch information
hugithordarson committed Nov 17, 2024
1 parent 532abca commit 41f7f59
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,6 @@ private static NGElement childrenToTemplate( final List<PNode> children ) {

if( childElements.size() == 1 ) {
return childElements.getFirst();

// FIXME: OK, I can kind of understand why we unwrap the single element. But why on earth wrap a component reference in a dynamic group? (legacy from WOOgnl). Disabled // Hugi 2024-11-15
// final NGElement onlyElement = childElements.get( 0 );
//
// if( onlyElement instanceof NGComponentReference ) {
// return new NGDynamicGroup( null, null, onlyElement );
// }
//
// return onlyElement;
}

return NGDynamicGroup.of( childElements );
Expand Down

0 comments on commit 41f7f59

Please sign in to comment.