Prevent adding the same group to an app multiple times

This commit is contained in:
Andrew Kingston 2022-08-01 13:21:45 +01:00
parent 8f524ce2c0
commit 080ba48adf
1 changed files with 3 additions and 3 deletions

View File

@ -39,9 +39,9 @@
} }
} }
$: filteredGroups = $groups.filter(element => { $: filteredGroups = $groups.filter(group => {
return !element.apps.find(y => { return !group.apps.find(appId => {
return y.appId === app.appId return appId === app.appId
}) })
}) })