Skip to content

Commit

Permalink
removed an unnecessary ul
Browse files Browse the repository at this point in the history
  • Loading branch information
deletidev committed Jun 18, 2024
1 parent f18e958 commit b1bd029
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ export const CollectionAccessible: React.FC<Props> = props => {
</ul>
) : null}
<h4>Fields for {table.tableName} collection</h4>
<FieldList fieldList={table.fields} listName={table.tableName} />
<ul>
<FieldList fieldList={table.fields} listName={table.tableName} />
</ul>
<TableRelationsAccessible
table={table}
canvasSchema={canvasSchema}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ export const Field: React.FC<Props> = props => {

const renderChildrenElement = (name: string, children?: FieldVm[]) => {
if (children)
return <FieldList fieldList={children} listName={`${name} nested`} />;
return (
<ul>
<FieldList fieldList={children} listName={`${name} nested`} />
</ul>
);
};

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,7 @@ interface Props {
export const FieldList: React.FC<Props> = props => {
const { fieldList, listName } = props;

return (
<ul>
{fieldList.map(field => (
<Field field={field} listName={listName} key={field.id} />
))}
</ul>
);
return fieldList.map(field => (
<Field field={field} listName={listName} key={field.id} />
));
};

0 comments on commit b1bd029

Please sign in to comment.