Skip to content

Commit

Permalink
Merge branch 'master' of github.com:marmelab/react-admin
Browse files Browse the repository at this point in the history
  • Loading branch information
fzaninotto committed Jun 11, 2020
2 parents ca7c95d + a334deb commit e314e07
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/ra-core/src/dataProvider/HttpError.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class HttpError extends Error {
public readonly body = null
) {
super(message);
Object.setPrototypeOf(this, HttpError.prototype);
this.name = this.constructor.name;
if (typeof Error.captureStackTrace === 'function') {
Error.captureStackTrace(this, this.constructor);
Expand Down
4 changes: 2 additions & 2 deletions packages/ra-ui-materialui/src/field/ArrayField.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ export const ArrayField: FunctionComponent<
fieldKey,
...rest
}) => {
const [ids, setIds] = useState();
const [data, setData] = useState();
const [ids, setIds] = useState(initialState.ids);
const [data, setData] = useState(initialState.data);

useEffect(() => {
const { ids, data } = getDataAndIds(record, source, fieldKey);
Expand Down

0 comments on commit e314e07

Please sign in to comment.