mirror of
				https://github.com/TeamPiped/Piped.git
				synced 2025-10-31 12:42:07 +00:00 
			
		
		
		
	Fix: Infinite loading due to empty string in search query
This commit is contained in:
		| @@ -200,10 +200,14 @@ export default { | ||||
|         }, | ||||
|         submitSearch(e) { | ||||
|             e.target.blur(); | ||||
|             this.$router.push({ | ||||
|                 name: "SearchResults", | ||||
|                 query: { search_query: this.searchText }, | ||||
|             }); | ||||
|             if (this.searchText) { | ||||
|                 this.$router.push({ | ||||
|                     name: "SearchResults", | ||||
|                     query: { search_query: this.searchText }, | ||||
|                 }); | ||||
|             } else { | ||||
|                 this.$router.push("/"); | ||||
|             } | ||||
|             return; | ||||
|         }, | ||||
|     }, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 grittypuffy
					grittypuffy