mirror of
				https://github.com/TeamPiped/Piped.git
				synced 2025-11-04 06:31:55 +00:00 
			
		
		
		
	Merge pull request #3420 from grittypuffy/fix-search
fix: Infinite loading when search query is empty
This commit is contained in:
		@@ -113,7 +113,7 @@ pnpm install
 | 
			
		||||
### Compiles and hot-reloads for development
 | 
			
		||||
 | 
			
		||||
```
 | 
			
		||||
pnpm serve
 | 
			
		||||
pnpm dev
 | 
			
		||||
```
 | 
			
		||||
 | 
			
		||||
You can now make changes and view then in realtime!
 | 
			
		||||
 
 | 
			
		||||
@@ -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