diff options
author | 2019-10-18 12:55:58 +0700 | |
---|---|---|
committer | 2019-10-18 12:55:58 +0700 | |
commit | b4b46bdecc64065256147b038535d75d30651f64 (patch) | |
tree | 252a7128515b3bca13e828fb8381815b314cff18 /src/stores | |
parent | Disable announcement feature (diff) | |
download | ferdium-app-b4b46bdecc64065256147b038535d75d30651f64.tar.gz ferdium-app-b4b46bdecc64065256147b038535d75d30651f64.tar.zst ferdium-app-b4b46bdecc64065256147b038535d75d30651f64.zip |
Safe access variable in _checkIfRecipeIsInstalled
Diffstat (limited to 'src/stores')
-rw-r--r-- | src/stores/RecipesStore.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stores/RecipesStore.js b/src/stores/RecipesStore.js index 7f91049df..8b2bde5df 100644 --- a/src/stores/RecipesStore.js +++ b/src/stores/RecipesStore.js | |||
@@ -108,7 +108,7 @@ export default class RecipesStore extends Store { | |||
108 | async _checkIfRecipeIsInstalled() { | 108 | async _checkIfRecipeIsInstalled() { |
109 | const { router } = this.stores; | 109 | const { router } = this.stores; |
110 | 110 | ||
111 | const match = matchRoute('/settings/services/add/:id', router.location.pathname); | 111 | const match = router.location && matchRoute('/settings/services/add/:id', router.location.pathname); |
112 | if (match) { | 112 | if (match) { |
113 | const recipeId = match.id; | 113 | const recipeId = match.id; |
114 | 114 | ||