Skip to content

Commit

Permalink
Merge pull request #4275 from WiXSL/patch-not-found-error
Browse files Browse the repository at this point in the history
Fix warning on catchall page due to improper sanitization in <NotFound> component.
  • Loading branch information
fzaninotto authored Jan 13, 2020
2 parents 92ceba1 + 9e759a7 commit f7ab333
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/ra-ui-materialui/src/layout/NotFound.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,13 @@ const NotFound = ({ className, classes: classesOverride, title, ...rest }) => {
);
};

const sanitizeRestProps = ({ location, ...rest }) => rest;
const sanitizeRestProps = ({
staticContext,
history,
location,
match,
...rest
}) => rest;

NotFound.propTypes = {
className: PropTypes.string,
Expand Down

0 comments on commit f7ab333

Please sign in to comment.