Fixed code not saving
This commit is contained in:
parent
0560c966f6
commit
d668640791
1 changed files with 3 additions and 0 deletions
|
|
@ -57,6 +57,8 @@ export default function CodeAreaModal({
|
||||||
setSuccessData({
|
setSuccessData({
|
||||||
title: "Code is ready to run",
|
title: "Code is ready to run",
|
||||||
});
|
});
|
||||||
|
setOpen(false);
|
||||||
|
setValue(code);
|
||||||
// setValue(code);
|
// setValue(code);
|
||||||
} else {
|
} else {
|
||||||
if (funcErrors.length !== 0) {
|
if (funcErrors.length !== 0) {
|
||||||
|
|
@ -91,6 +93,7 @@ export default function CodeAreaModal({
|
||||||
const { data } = apiReturn;
|
const { data } = apiReturn;
|
||||||
if (data) {
|
if (data) {
|
||||||
setNodeClass(data);
|
setNodeClass(data);
|
||||||
|
setValue(code);
|
||||||
setOpen(false);
|
setOpen(false);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue