Add param check

This commit is contained in:
Tee
2021-03-14 21:33:20 -04:00
parent 619ec93332
commit 1bcdd1d990

View File

@ -37,7 +37,7 @@ export class Client {
if (params.toLowerCase().includes('page') || params.toLowerCase().includes('order')) url += `?${params}`;
else url += `/${params}`;
}
else url += `?q=${this.paramsToQuery(params)}`;
else if (params) url += `?q=${this.paramsToQuery(params)}`;
return axios.default.get<T>(url, config)
.then(response => {