change fields component & handle edit, delete, add data and save & change functional page doctor
This commit is contained in:
@@ -101,7 +101,6 @@ function Form({ insurance, errors, changeData, information }) {
|
||||
updateData={(name, val) => {
|
||||
changeData([Number(val.id)], name);
|
||||
}}
|
||||
// value={findVal(insurance, "basic_insurance", true)?.name}
|
||||
value={insurance?.find(
|
||||
(g) =>
|
||||
Number(g.id) ===
|
||||
@@ -127,8 +126,6 @@ function Form({ insurance, errors, changeData, information }) {
|
||||
changeData={changeData}
|
||||
data={information?.insurance_id}
|
||||
name="insurance_id"
|
||||
// data={information?.supplementary_insurance}
|
||||
// name="supplementary_insurance"
|
||||
/>
|
||||
</Content>
|
||||
<Content error={errors?.blood_type} title="گروه خونی">
|
||||
|
||||
Reference in New Issue
Block a user