using post
This commit is contained in:
parent
cbcb8bf36d
commit
da4be03451
1 changed files with 11 additions and 11 deletions
|
|
@ -104,18 +104,18 @@ export default function CodeAreaModal({
|
|||
}
|
||||
else
|
||||
{
|
||||
// postCustomComponent(code, nodeClass).then((apiReturn) => {
|
||||
// const {data} = apiReturn;
|
||||
// if (data) {
|
||||
// setNodeClass(data);
|
||||
// setModalOpen(false);
|
||||
// }
|
||||
// });
|
||||
postCustomComponent(code, nodeClass).then((apiReturn) => {
|
||||
const {data} = apiReturn;
|
||||
if (data) {
|
||||
setNodeClass(data);
|
||||
setModalOpen(false);
|
||||
}
|
||||
});
|
||||
}
|
||||
axios.get("/api/v1/custom_component_error").catch((err) => {
|
||||
console.log(err.response.data);
|
||||
setError(err.response.data);
|
||||
})
|
||||
// axios.get("/api/v1/custom_component_error").catch((err) => {
|
||||
// console.log(err.response.data);
|
||||
// setError(err.response.data);
|
||||
// })
|
||||
|
||||
}
|
||||
const tabs = [{ name: "code" }, { name: "errors" }]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue