improvement of error check on code modal

This commit is contained in:
anovazzi1 2023-03-28 20:17:51 -03:00
commit 2c235402ca
5 changed files with 81 additions and 36 deletions

View file

@ -23,7 +23,6 @@ export default function GenericNode({
const { types, deleteNode } = useContext(typesContext);
const Icon = nodeIcons[types[data.type]];
if (!Icon) {
console.log(data);
if (showError.current) {
setErrorData({
title: data.type
@ -34,7 +33,6 @@ export default function GenericNode({
}
return;
}
console.log(data)
return (
<div
className={classNames(