diff options
Diffstat (limited to 'src/containers/settings/RecipesScreen.js')
-rw-r--r-- | src/containers/settings/RecipesScreen.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/containers/settings/RecipesScreen.js b/src/containers/settings/RecipesScreen.js index 1f05b6510..b3d758c87 100644 --- a/src/containers/settings/RecipesScreen.js +++ b/src/containers/settings/RecipesScreen.js | |||
@@ -16,7 +16,7 @@ export default @inject('stores', 'actions') @observer class RecipesScreen extend | |||
16 | static propTypes = { | 16 | static propTypes = { |
17 | params: PropTypes.shape({ | 17 | params: PropTypes.shape({ |
18 | filter: PropTypes.string, | 18 | filter: PropTypes.string, |
19 | }).isRequired, | 19 | }), |
20 | }; | 20 | }; |
21 | 21 | ||
22 | static defaultProps = { | 22 | static defaultProps = { |
@@ -30,6 +30,8 @@ export default @inject('stores', 'actions') @observer class RecipesScreen extend | |||
30 | currentFilter: 'featured', | 30 | currentFilter: 'featured', |
31 | }; | 31 | }; |
32 | 32 | ||
33 | autorunDisposer = null; | ||
34 | |||
33 | componentDidMount() { | 35 | componentDidMount() { |
34 | gaPage('Settings/Recipe Dashboard/Featured'); | 36 | gaPage('Settings/Recipe Dashboard/Featured'); |
35 | 37 | ||
@@ -55,8 +57,6 @@ export default @inject('stores', 'actions') @observer class RecipesScreen extend | |||
55 | this.autorunDisposer(); | 57 | this.autorunDisposer(); |
56 | } | 58 | } |
57 | 59 | ||
58 | autorunDisposer = null; | ||
59 | |||
60 | searchRecipes(needle) { | 60 | searchRecipes(needle) { |
61 | if (needle === '') { | 61 | if (needle === '') { |
62 | this.resetSearch(); | 62 | this.resetSearch(); |
@@ -72,7 +72,9 @@ export default @inject('stores', 'actions') @observer class RecipesScreen extend | |||
72 | } | 72 | } |
73 | 73 | ||
74 | render() { | 74 | render() { |
75 | const { recipePreviews, recipes, services, user } = this.props.stores; | 75 | const { |
76 | recipePreviews, recipes, services, user, | ||
77 | } = this.props.stores; | ||
76 | const { showAddServiceInterface } = this.props.actions.service; | 78 | const { showAddServiceInterface } = this.props.actions.service; |
77 | 79 | ||
78 | const { filter } = this.props.params; | 80 | const { filter } = this.props.params; |