Prevent adding the same group to an app multiple times
This commit is contained in:
parent
8f524ce2c0
commit
080ba48adf
|
@ -39,9 +39,9 @@
|
|||
}
|
||||
}
|
||||
|
||||
$: filteredGroups = $groups.filter(element => {
|
||||
return !element.apps.find(y => {
|
||||
return y.appId === app.appId
|
||||
$: filteredGroups = $groups.filter(group => {
|
||||
return !group.apps.find(appId => {
|
||||
return appId === app.appId
|
||||
})
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in New Issue