fix bug dashboard bugs & handle request update data in user profile & change design button in home page
This commit is contained in:
@@ -5,8 +5,8 @@ import ItemAllergie from "./ItemAllergie";
|
||||
import ModalAddAlergie from "./modal";
|
||||
|
||||
function Allergies({ data, changeData, updateData, loading }) {
|
||||
const { other } = data;
|
||||
const { allergies } = other && other[0];
|
||||
const allergies =
|
||||
data && data.other && data.other[0] && data.other[0].allergies;
|
||||
const tableHead = ["ردیف", "ماده آلرژیزا", "واکنش", "شدت", ""];
|
||||
const centerTable = [0];
|
||||
const [open, setOpen] = useState(false);
|
||||
|
||||
Reference in New Issue
Block a user