🐛 fix(EditNodeModal): remove unnecessary code that closes the modal when nodeLength is 0

This commit is contained in:
Cristhian Zanforlin Lousa 2023-07-14 08:17:30 -03:00
commit 21f058d46d

View file

@ -61,9 +61,6 @@ const EditNodeModal = forwardRef(
let disabled =
reactFlowInstance?.getEdges().some((e) => e.targetHandle === data.id) ??
false;
if (nodeLength == 0) {
setModalOpen(false);
}
function changeAdvanced(node) {
Object.keys(data.node.template).map((n, i) => {