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({
|
||||
title: "Code is ready to run",
|
||||
});
|
||||
setOpen(false);
|
||||
setValue(code);
|
||||
// setValue(code);
|
||||
} else {
|
||||
if (funcErrors.length !== 0) {
|
||||
|
|
@ -91,6 +93,7 @@ export default function CodeAreaModal({
|
|||
const { data } = apiReturn;
|
||||
if (data) {
|
||||
setNodeClass(data);
|
||||
setValue(code);
|
||||
setOpen(false);
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue