Skip to content

Commit

Permalink
handle upper and lower case (#4660)
Browse files Browse the repository at this point in the history
  • Loading branch information
nkylstad authored Aug 25, 2020
1 parent 91c4bd1 commit d529111
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function Form() {
let componentsToRender: any[] = layout;
let renderedInGroup: string[] = [];
if (layout) {
const groupComponents = layout.filter((component) => component.type === 'group');
const groupComponents = layout.filter((component) => component.type.toLowerCase() === 'group');
groupComponents.forEach((component: ILayoutGroup) => {
renderedInGroup = renderedInGroup.concat(component.children);
});
Expand Down

0 comments on commit d529111

Please sign in to comment.