diff options
author | Vijay A <avijayr@protonmail.com> | 2021-08-11 21:01:14 +0530 |
---|---|---|
committer | Vijay A <avijayr@protonmail.com> | 2021-08-11 21:01:14 +0530 |
commit | 664b2c5a0523439c9672248b652df858facf7ff2 (patch) | |
tree | bd6e138cd725166dfef1a93cec7b35118b6b3903 /src/features/communityRecipes | |
parent | revert: fixing #1757 by commenting out partial fix (diff) | |
download | ferdium-app-664b2c5a0523439c9672248b652df858facf7ff2.tar.gz ferdium-app-664b2c5a0523439c9672248b652df858facf7ff2.tar.zst ferdium-app-664b2c5a0523439c9672248b652df858facf7ff2.zip |
refactor: removed legacy properties from recipes
(Addendum to getferdi/recipes#605)
Diffstat (limited to 'src/features/communityRecipes')
-rw-r--r-- | src/features/communityRecipes/store.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/features/communityRecipes/store.js b/src/features/communityRecipes/store.js index b115a53e1..a3614dd11 100644 --- a/src/features/communityRecipes/store.js +++ b/src/features/communityRecipes/store.js | |||
@@ -19,6 +19,7 @@ export class CommunityRecipesStore extends FeatureStore { | |||
19 | if (!this.stores) return []; | 19 | if (!this.stores) return []; |
20 | 20 | ||
21 | return this.stores.recipePreviews.dev.map((r) => { | 21 | return this.stores.recipePreviews.dev.map((r) => { |
22 | // TODO: Need to figure out if this is even necessary/used | ||
22 | r.isDevRecipe = !!r.author.find((a) => a.email === this.stores.user.data.email); | 23 | r.isDevRecipe = !!r.author.find((a) => a.email === this.stores.user.data.email); |
23 | 24 | ||
24 | return r; | 25 | return r; |