Skip to content

Commit

Permalink
Allow override List children
Browse files Browse the repository at this point in the history
  • Loading branch information
andersw-lolo committed Feb 18, 2024
1 parent e034c00 commit a357e25
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lolocompany/react-admin-lolo",
"version": "2.1.12",
"version": "2.1.13",
"description": "A library for schema-driven web apps using [Lolo](https://lolo.company), [React Admin](https://github.com/marmelab/react-admin) and [RJSF](https://github.com/rjsf-team/react-jsonschema-form)",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down
3 changes: 2 additions & 1 deletion src/views/List.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,13 @@ const List = props => {
perPage={15}
{...props}
>
<ra.Datagrid
{props.children ? props.children : (<ra.Datagrid
rowClick={props.hasShow ? 'show' : props.hasEdit ? 'edit' : null}
expand={props.expand || <ExpandPanel />}
>
{Object.entries(listSchema.properties).map(toField)}
</ra.Datagrid>
)}
</ra.List>
);
};
Expand Down

0 comments on commit a357e25

Please sign in to comment.