mirror of
https://github.com/FreeTubeApp/FreeTube
synced 2024-12-15 14:09:53 +01:00
Merge pull request #902 from GilgusMaximus/development
Added check for duplicate in YouTube JSON file
This commit is contained in:
commit
c9c1e4c3e0
1
.gitignore
vendored
1
.gitignore
vendored
@ -20,3 +20,4 @@ coverage
|
||||
__coverage__
|
||||
csak-timelog.json
|
||||
.idea/
|
||||
debug/
|
||||
|
@ -265,7 +265,11 @@ export default Vue.extend({
|
||||
return sub.id === subscription.id || sub.name === subscription.name
|
||||
})
|
||||
|
||||
if (subExists === -1) {
|
||||
const subDuplicateExists = subscriptions.findIndex((sub) => {
|
||||
return sub.id === subscription.id || sub.name === subscription.name
|
||||
})
|
||||
|
||||
if (subExists === -1 && subDuplicateExists === -1) {
|
||||
subscriptions.push(subscription)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user