fix(codeAreaModal): clear error state when setting value to code and closing modal to prevent displaying previous errors
This commit is contained in:
parent
e43f52dd7a
commit
3d103398e3
1 changed files with 1 additions and 0 deletions
|
|
@ -96,6 +96,7 @@ export default function CodeAreaModal({
|
|||
if (data) {
|
||||
setNodeClass(data);
|
||||
setValue(code);
|
||||
setError({ detail: { error: undefined, traceback: undefined } });
|
||||
setOpen(false);
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue