paginations ,limit=50
This commit is contained in:
@@ -8,8 +8,6 @@ export async function getClinicDoctors(slug, params = {}) {
|
||||
const query = new URLSearchParams(params).toString();
|
||||
const finalUrl = `${baseUrl}/api/v1/clinic/doctor-list/${slug}?${query}`;
|
||||
|
||||
console.log("Final API URL:", finalUrl);
|
||||
|
||||
const response = await fetch(finalUrl, { method: "GET" });
|
||||
|
||||
if (!response.ok) {
|
||||
@@ -18,7 +16,6 @@ export async function getClinicDoctors(slug, params = {}) {
|
||||
}
|
||||
|
||||
const json = await response.json();
|
||||
console.log("✅ raw API result:", json);
|
||||
|
||||
const doctorsList = json?.data || json || [];
|
||||
return Array.isArray(doctorsList) ? doctorsList : [];
|
||||
|
||||
Reference in New Issue
Block a user