mirror of
				https://github.com/TeamPiped/Piped.git
				synced 2025-11-03 22:21:55 +00:00 
			
		
		
		
	Improve the switch statement at the feed filter
				
					
				
			This commit is contained in:
		@@ -99,13 +99,13 @@ export default {
 | 
			
		||||
            }
 | 
			
		||||
        },
 | 
			
		||||
        shouldShowVideo(video) {
 | 
			
		||||
            switch (this.selectedFilter) {
 | 
			
		||||
                case "all":
 | 
			
		||||
                    return true;
 | 
			
		||||
            switch (this.selectedFilter.toLowerCase()) {
 | 
			
		||||
                case "shorts":
 | 
			
		||||
                    return video.isShort;
 | 
			
		||||
                case "videos":
 | 
			
		||||
                    return !video.isShort;
 | 
			
		||||
                default:
 | 
			
		||||
                    return video.isShort;
 | 
			
		||||
                    return true;
 | 
			
		||||
            }
 | 
			
		||||
        },
 | 
			
		||||
        onFilterChange() {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user