File tree Expand file tree Collapse file tree 1 file changed +13
-7
lines changed
Expand file tree Collapse file tree 1 file changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -429,7 +429,7 @@ export default {
429429 return async (offset : any , limit : any ) => {
430430 let res = null ;
431431 // Handle backend query depending on page
432- if (this .isFavPage ) {
432+ if (this .isFavPage ) {
433433 // Favourites Page
434434 res = await backendApi
435435 .favoritesVideos (this .$store .state .userdata .jwt , {
@@ -446,13 +446,19 @@ export default {
446446 // Home Page
447447 res = await backendApi
448448 .videos ({
449- ... query ,
450- org: this .$store .state .currentOrg .name ,
451- limit ,
452- offset ,
453- });
449+ ... query ,
450+ org: this .$store .state .currentOrg .name ,
451+ limit ,
452+ offset ,
453+ });
454+ }
455+ // Handle collab tab
456+ if (this .tab === this .Tabs .COLLABS ) {
457+ res .data .items = res .data .items .filter (
458+ // Filter only for videos with mentions (collabs)
459+ (obj ) => (Array .isArray (obj .mentions ) && obj .mentions .length > 0 ),
460+ );
454461 }
455-
456462 return res ?.data ;
457463 };
458464 },
You can’t perform that action at this time.
0 commit comments