verify that the data is not null in search.js
This commit is contained in:
		
							parent
							
								
									4558c2fb60
								
							
						
					
					
						commit
						0a3c281a49
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -358,7 +358,7 @@ class Search { | |||
| 			Display the search results in the log. | ||||
| 			*/ | ||||
| 			function log (data, title) { | ||||
| 				if (Object.keys(data).length) { | ||||
| 				if (data ? (Object.keys(data).length) : false) { | ||||
| 					let RESULT_STRING = ``; | ||||
| 					(Object.keys(data)).forEach((RESULT_KEY) => { | ||||
| 						RESULT_STRING += RESULT_KEY.concat(((title) ? data[RESULT_KEY][title] : false) ? `: `.concat(data[RESULT_KEY][title]) : ``, `\n`); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue