Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,6 @@ public Object[] getChildren(Object parentElement) {
handleChild(childWizard, list);
}

// flatten lists with only one category
if (list.size() == 1 && list.get(0) instanceof WizardCollectionElement) {
return getChildren(list.get(0));
}

return list.toArray();
} else if (parentElement instanceof AdaptableList) {
AdaptableList aList = (AdaptableList) parentElement;
Expand All @@ -59,10 +54,6 @@ public Object[] getChildren(Object parentElement) {
for (Object element : children) {
handleChild(element, list);
}
// if there is only one category, return it's children directly (flatten list)
if (list.size() == 1 && list.get(0) instanceof WizardCollectionElement) {
return getChildren(list.get(0));
}

return list.toArray();
} else {
Expand Down
Loading