aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/RecipesStore.js
diff options
context:
space:
mode:
authorLibravatar Amine Mouafik <amine@mouafik.fr>2019-10-18 12:55:58 +0700
committerLibravatar Amine Mouafik <amine@mouafik.fr>2019-10-18 12:55:58 +0700
commitb4b46bdecc64065256147b038535d75d30651f64 (patch)
tree252a7128515b3bca13e828fb8381815b314cff18 /src/stores/RecipesStore.js
parentDisable announcement feature (diff)
downloadferdium-app-b4b46bdecc64065256147b038535d75d30651f64.tar.gz
ferdium-app-b4b46bdecc64065256147b038535d75d30651f64.tar.zst
ferdium-app-b4b46bdecc64065256147b038535d75d30651f64.zip
Safe access variable in _checkIfRecipeIsInstalled
Diffstat (limited to 'src/stores/RecipesStore.js')
-rw-r--r--src/stores/RecipesStore.js2
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