aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/UserStore.js
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2017-10-25 09:52:33 +0200
committerLibravatar GitHub <noreply@github.com>2017-10-25 09:52:33 +0200
commiteaf3c8f5d1deee878b0da87df8a083143115994f (patch)
tree4ce5f5dff3791a41463e711f683fe5b7129550e8 /src/stores/UserStore.js
parentMerge pull request #58 from Blizzke/nl-BE (diff)
parentBump version to 5.0.0-beta.11 (diff)
downloadferdium-app-eaf3c8f5d1deee878b0da87df8a083143115994f.tar.gz
ferdium-app-eaf3c8f5d1deee878b0da87df8a083143115994f.tar.zst
ferdium-app-eaf3c8f5d1deee878b0da87df8a083143115994f.zip
Merge pull request #108 from meetfranz/develop
Franz 5.0.0-beta.11
Diffstat (limited to 'src/stores/UserStore.js')
-rw-r--r--src/stores/UserStore.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/stores/UserStore.js b/src/stores/UserStore.js
index 4927d615f..1cb2ecac3 100644
--- a/src/stores/UserStore.js
+++ b/src/stores/UserStore.js
@@ -192,6 +192,15 @@ export default class UserStore extends Store {
192 @action async _importLegacyServices({ services }) { 192 @action async _importLegacyServices({ services }) {
193 this.isImportLegacyServicesExecuting = true; 193 this.isImportLegacyServicesExecuting = true;
194 194
195 // Reduces recipe duplicates
196 const recipes = services.filter((obj, pos, arr) => arr.map(mapObj => mapObj.recipe.id).indexOf(obj.recipe.id) === pos).map(s => s.recipe.id);
197
198 // Install recipes
199 for (const recipe of recipes) {
200 // eslint-disable-next-line
201 await this.stores.recipes._install({ recipeId: recipe });
202 }
203
195 for (const service of services) { 204 for (const service of services) {
196 this.actions.service.createFromLegacyService({ 205 this.actions.service.createFromLegacyService({
197 data: service, 206 data: service,