|
|
|
@ -202,7 +202,7 @@ const ProjectType = ({ params, ...props }) => {
|
|
|
|
|
if (type === "save") { |
|
|
|
|
saveDemo(data); |
|
|
|
|
} else if (type === "edit") { |
|
|
|
|
editMaterialR(data); |
|
|
|
|
editDemo(data); |
|
|
|
|
} |
|
|
|
|
setDataEdit([]) |
|
|
|
|
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) |
|
|
|
|
const formData = data |
|
|
|
|
const result = await axios.put(urlEdit, formData, HEADER) |