improvement of error check on code modal
This commit is contained in:
parent
a5ffa72855
commit
2c235402ca
5 changed files with 81 additions and 36 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue