mirror of
				https://github.com/blakeblackshear/frigate.git
				synced 2025-10-27 10:52:11 +01:00 
			
		
		
		
	Fix if search word is number will be crash (#19426)
* fix: fix if filterValues is number will be crash * chore: use String function cover filterValues
This commit is contained in:
		
							parent
							
								
									84f48ee3eb
								
							
						
					
					
						commit
						6f2e6c4cb2
					
				
							
								
								
									
										6
									
								
								web/src/components/input/InputWithTags.tsx
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										6
									
								
								web/src/components/input/InputWithTags.tsx
									
									
									
									
									
										
										
										Normal file → Executable file
									
								
							@ -420,11 +420,11 @@ export default function InputWithTags({
 | 
			
		||||
        ? t("button.yes", { ns: "common" })
 | 
			
		||||
        : t("button.no", { ns: "common" });
 | 
			
		||||
    } else if (filterType === "labels") {
 | 
			
		||||
      return getTranslatedLabel(filterValues as string);
 | 
			
		||||
      return getTranslatedLabel(String(filterValues));
 | 
			
		||||
    } else if (filterType === "search_type") {
 | 
			
		||||
      return t("filter.searchType." + (filterValues as string));
 | 
			
		||||
      return t("filter.searchType." + String(filterValues));
 | 
			
		||||
    } else {
 | 
			
		||||
      return (filterValues as string).replaceAll("_", " ");
 | 
			
		||||
      return String(filterValues).replaceAll("_", " ");
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user