handle change data in doctor model, set previous data when user close modal, update list doctor after update data and change key name in url

This commit is contained in:
Ehsan
2025-09-05 23:05:02 +03:30
parent ebfe47468c
commit dc40129034
13 changed files with 175 additions and 56 deletions
+2 -2
View File
@@ -48,12 +48,12 @@ function ModalSearchCity() {
useEffect(() => {
if (selected.first) {
const selectedState = states.find(
(state) => state.label === selected.first,
(state) => state.label === selected.first
);
if (selectedState) {
const stateId = selectedState.id;
const filteredCities = cities.filter(
(city) => city.province_id === stateId,
(city) => city.province_id === stateId
);
setFilteredCities(filteredCities);
}