address returned filters
This commit is contained in:
		
							parent
							
								
									9f9335e248
								
							
						
					
					
						commit
						90eb60b59a
					
				
					 1 changed files with 6 additions and 3 deletions
				
			
		|  | @ -23,7 +23,7 @@ export default class filters { | |||
| 	@param {string} URL the current URL | ||||
| 	*/ | ||||
| 	async select(URL = window.location.href) { | ||||
| 		this.one = await (async () => { | ||||
| 		let SELECTED = await (async () => { | ||||
| 			// Get the filters.
 | ||||
| 			let filter = await search(`filters`, URL, `URL`, false, {"cloud": -1}); | ||||
| 
 | ||||
|  | @ -31,8 +31,11 @@ export default class filters { | |||
| 			return filter; | ||||
| 		})(); | ||||
| 
 | ||||
| 		return (this.one); | ||||
| 	} | ||||
| 		if ((SELECTED && SELECTED != null && (typeof SELECTED).includes(`obj`)) ? Object.keys(SELECTED) : false) { | ||||
| 			this.one = (Object.entries(SELECTED))[0][1]; | ||||
| 			return (this.one); | ||||
| 		}; | ||||
| 	}; | ||||
| 
 | ||||
| 	/* Update all filters or just one. | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue