feat(API): add postCustomComponent function to create custom components
fix(modals): replace UpdateTemplate function with postCustomComponent function to create custom components
This commit is contained in:
parent
cfa7dd6800
commit
08b20e18cb
2 changed files with 8 additions and 2 deletions
|
|
@ -92,10 +92,9 @@ export default function CodeAreaModal({
|
|||
})
|
||||
}
|
||||
);
|
||||
UpdateTemplate('code',nodeClass).then((apiReturn) => {
|
||||
postCustomComponent('code',nodeClass).then((apiReturn) => {
|
||||
const data = apiReturn.data;
|
||||
if (data) {
|
||||
console.log(data)
|
||||
setNodeClass(data);
|
||||
setModalOpen(false);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue