diff --git a/src/components/users.js b/src/components/users.js index 3ac6575..9c92899 100644 --- a/src/components/users.js +++ b/src/components/users.js @@ -12,6 +12,7 @@ import { PasswordInput, TextField, TextInput, + SearchInput, ReferenceField, SaveButton, Toolbar, @@ -21,6 +22,7 @@ import SaveQrButton from "./SaveQrButton"; const UserFilter = props => ( + ({ + data: json["results"].map(u => ({ + ...u, + id: u.user_id, + name: u.user_id, + })), + total: json.limited ? perPage * 2 : json.results.length, + })); + } + return jsonClient(url).then(({ json }) => ({ data: json[res.data].map(res.map), total: res.total(json, perPage),