|
|
@ -202,7 +202,7 @@ const ProjectType = ({ params, ...props }) => { |
|
|
|
if (type === "save") { |
|
|
|
if (type === "save") { |
|
|
|
saveDemo(data); |
|
|
|
saveDemo(data); |
|
|
|
} else if (type === "edit") { |
|
|
|
} else if (type === "edit") { |
|
|
|
editMaterialR(data); |
|
|
|
editDemo(data); |
|
|
|
} |
|
|
|
} |
|
|
|
setDataEdit([]) |
|
|
|
setDataEdit([]) |
|
|
|
setOpenDialog(false) |
|
|
|
setOpenDialog(false) |
|
|
@ -221,7 +221,7 @@ const ProjectType = ({ params, ...props }) => { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const editMaterialR = async (data) => { |
|
|
|
const editDemo = async (data) => { |
|
|
|
let urlEdit = DEMO_MANAGEMENT_EDIT(data.id) |
|
|
|
let urlEdit = DEMO_MANAGEMENT_EDIT(data.id) |
|
|
|
const formData = data |
|
|
|
const formData = data |
|
|
|
const result = await axios.put(urlEdit, formData, HEADER) |
|
|
|
const result = await axios.put(urlEdit, formData, HEADER) |