fix: refetch doctor by specialist
This commit is contained in:
@@ -122,7 +122,7 @@ async function handleFetchDoctors(subSpecialistId: string) {
|
||||
const isSub = isSubspecialist(subSpecialistId, specialistsTree.value)
|
||||
|
||||
// Build filter based on selection type
|
||||
const filterParams: any = { 'page-size': 100 }
|
||||
const filterParams: any = { 'page-size': 100, includes: 'employee-Person' }
|
||||
|
||||
if (isSub) {
|
||||
// If selected is subspecialist, filter by subspecialist-id
|
||||
@@ -132,11 +132,8 @@ async function handleFetchDoctors(subSpecialistId: string) {
|
||||
filterParams['specialist-id'] = subSpecialistId
|
||||
}
|
||||
|
||||
console.log('Fetching doctors with filter:', filterParams)
|
||||
|
||||
const doctors = await getDoctorValueLabelList(filterParams)
|
||||
doctorsList.value = doctors
|
||||
console.log('Fetched doctors:', doctors)
|
||||
} catch (error) {
|
||||
console.error('Error fetching doctors:', error)
|
||||
doctorsList.value = []
|
||||
|
||||
Reference in New Issue
Block a user