Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fixing the problem with duplicated songs in the "Likes" area#703

Closed
jogacolhue wants to merge 1 commit intoSoundnode:masterfrom
jogacolhue:master
Closed

Fixing the problem with duplicated songs in the "Likes" area#703
jogacolhue wants to merge 1 commit intoSoundnode:masterfrom
jogacolhue:master

Conversation

@jogacolhue
Copy link

Each time a person reaches the end of the scroll in the "Likes" area of the app, a double load of songs happen, like in #702 , the problem was that in the function of the favoritesCtrl.js there were two scopes in the "for" ($scope.originalData.push( data.collection[i] ) and $scope.data.push( data.collection[i] ).
I fixed this by looking at the tracksCtrl.js where only "$scope.data.push()" is needed to work.

@SaahilMehta
Copy link

Duplicates still occurring in v0.6.3

@jogacolhue
Copy link
Author

Have you tried using my fork?, the solution isn't still merged with the master branch.

@SaahilMehta
Copy link

Sorry, new to GitHub; how do I access your fork?

@weblancaster
Copy link
Member

from master branch.

'git fetch origin pull/703/head:fix-duplicated' then git checkout fix-duplicated then you can run the app.

@weblancaster
Copy link
Member

Thanks @DrJosepon but this was fixed in #713 for all views.

@jogacolhue
Copy link
Author

NP, gotta be more careful next time.

@weblancaster
Copy link
Member

the $scope.originalData.push( data.collection[i] we had there was for a feat we had before and was removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants