refactor: enhance handling of supplementary insurance in Form and AppointmentPage components
This commit is contained in:
@@ -14,7 +14,8 @@ function DefaultSelect({ list, value, updateData, label, error, name }) {
|
||||
}}
|
||||
className="!w-full !rounded-lg auto-complete-selector"
|
||||
onChange={(_, newValue) => {
|
||||
updateData(name, newValue?.id || newValue?.label || newValue || "");
|
||||
// اگر آیتم انتخاب شده باشد، کل شیء را برمیگردانیم، در غیر این صورت خالی
|
||||
updateData(name, newValue || "");
|
||||
}}
|
||||
sx={{
|
||||
...styleTextSelectRight,
|
||||
|
||||
Reference in New Issue
Block a user