diff options
Diffstat (limited to 'src/settings/components/form/SearchForm.jsx')
-rw-r--r-- | src/settings/components/form/SearchForm.jsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/settings/components/form/SearchForm.jsx b/src/settings/components/form/SearchForm.jsx index 718cca1..2e070fc 100644 --- a/src/settings/components/form/SearchForm.jsx +++ b/src/settings/components/form/SearchForm.jsx @@ -8,9 +8,6 @@ class SearchForm extends React.Component { render() { let value = this.props.value; - if (!value) { - value = { default: '', engines: []}; - } if (!value.engines) { value.engines = []; } @@ -82,7 +79,10 @@ SearchForm.propTypes = { engines: PropTypes.arrayOf(PropTypes.arrayOf(PropTypes.string)), }), onChange: PropTypes.func, +}; +SearchForm.defaultProps = { + value: { default: '', engines: []}, }; export default SearchForm; |