refactor: Handle error updating Component code in GenericNode
When updating the Component code in GenericNode, handle any errors that occur. If an error occurs, display an error message with instructions to report the issue on Discord or GitHub. This improves the error handling and user experience when updating the Component code.
This commit is contained in:
parent
f4517b250e
commit
8f2232575d
1 changed files with 8 additions and 0 deletions
|
|
@ -239,6 +239,14 @@ export default function GenericNode({
|
|||
}
|
||||
})
|
||||
.catch((err) => {
|
||||
setErrorData({
|
||||
title: "Error updating Compoenent code",
|
||||
list: [
|
||||
"There was an error updating the Component.",
|
||||
"If the error persists, please report it on our Discord or GitHub.",
|
||||
],
|
||||
});
|
||||
setLoadingUpdate(false);
|
||||
console.log(err);
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue