Skip to content

Commit

Permalink
Fix bug in withTranslate HOC
Browse files Browse the repository at this point in the history
  • Loading branch information
fzaninotto committed Sep 11, 2019
1 parent 9a64f32 commit 151cb13
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/ra-core/src/i18n/translate.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ const MyHelloButton = ({ translate }) => (
);
};

TranslatedComponent.defaultProps = BaseComponent.defaultProps;

return TranslatedComponent;
};

Expand Down

0 comments on commit 151cb13

Please sign in to comment.