File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 637637 if ( error ) return console . log ( error ) ;
638638
639639 if ( data && data . result . length ) {
640- data . result . map ( item => _this . items . push ( { ...item . data , id : item . id } ) )
640+ const result = data . result . filter ( item => ! _this . items . find ( _item => _item . id === item . id ) ) ;
641+ result . map ( item => _this . items . push ( { ...item . data , id : item . id } ) )
641642 if ( data . totalRecord > _this . items . length ) {
642643 _this . showMorePosts = true ;
643644 _this . page ++ ;
Original file line number Diff line number Diff line change 102102 < div ng-show ="WidgetWall.SocialItems.items.length<=0 && WidgetWall.loadedPlugin && !WidgetWall.loading ">
103103 < div class ="empty_state "> </ div >
104104 </ div >
105- < div class ="social-item " ng-repeat ="post in WidgetWall.SocialItems.items ">
105+ < div class ="social-item " ng-repeat ="post in WidgetWall.SocialItems.items track by post.id ">
106106
107107 < div class ="head ">
108108 < div ng-class ="{'social-profile-user-photo': WidgetWall.SocialItems.userDetails.userId == post.userId} "
You can’t perform that action at this time.
0 commit comments