Fix filter + search urls
This commit is contained in:
		@@ -78,13 +78,13 @@ function navigateToAdd() {
 | 
			
		||||
 | 
			
		||||
function filter(filterString) {
 | 
			
		||||
    filterString = filterString.toUpperCase();
 | 
			
		||||
    const fetchURL = baseURL + "?type=" + encodeURIComponent(filterString) + "&size=" + defaultPagingValue;
 | 
			
		||||
    const fetchURL = apiEndpoint + "?type=" + encodeURIComponent(filterString) + "&size=" + defaultPagingValue;
 | 
			
		||||
    console.log(fetchURL); // TODO: remove
 | 
			
		||||
    fetchQuery(fetchURL);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
function search(searchString) {
 | 
			
		||||
    const fetchURL = baseURL + "/search" + "?search=" + encodeURIComponent(searchString.length === 0?"%":searchString);
 | 
			
		||||
    const fetchURL = apiEndpoint + "/search" + "?search=" + encodeURIComponent(searchString.length === 0?"%":searchString);
 | 
			
		||||
    console.log(fetchURL); // TODO: remove
 | 
			
		||||
    fetchQuery(fetchURL);
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user