diff options
author | 2017-11-04 00:11:41 +0100 | |
---|---|---|
committer | 2017-11-04 00:11:41 +0100 | |
commit | def4b27e980da4e32f494c6832c1851e3364a252 (patch) | |
tree | 520d42e0f24429a42da00ae36fe975c48a591627 /src/models/Recipe.js | |
parent | fix(App): Add checks to service url validation to prevent app freeze (diff) | |
download | ferdium-app-def4b27e980da4e32f494c6832c1851e3364a252.tar.gz ferdium-app-def4b27e980da4e32f494c6832c1851e3364a252.tar.zst ferdium-app-def4b27e980da4e32f494c6832c1851e3364a252.zip |
Improve (dev) recipe loading
Diffstat (limited to 'src/models/Recipe.js')
-rw-r--r-- | src/models/Recipe.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/models/Recipe.js b/src/models/Recipe.js index 4b613a40c..9971df77c 100644 --- a/src/models/Recipe.js +++ b/src/models/Recipe.js | |||
@@ -26,7 +26,8 @@ export default class Recipe { | |||
26 | } | 26 | } |
27 | 27 | ||
28 | if (!data.id) { | 28 | if (!data.id) { |
29 | throw Error('Recipe requires Id'); | 29 | // Franz 4 recipes do not have an Id |
30 | throw Error(`Recipe '${data.name}' requires Id`); | ||
30 | } | 31 | } |
31 | 32 | ||
32 | this.id = data.id || this.id; | 33 | this.id = data.id || this.id; |