disable undo and empty name validation
[sdc/sdc-workflow-designer.git] / workflow-designer-ui / src / main / frontend / src / features / version / inputOutput / inputOutputValidations.js
index a300e21..50a6421 100644 (file)
@@ -38,6 +38,16 @@ export const getValidationsError = dataRows => {
         return result;
     }, []);
 
+    error.emptyName = dataRows.reduce((result, value, key) => {
+        const name = value.name;
+
+        if (!name) {
+            result.push(key);
+        }
+
+        return result;
+    }, []);
+
     error.invalidCharacters = dataRows.reduce((result, value, key) => {
         const groupKey = value.name;