Skip to content

Commit

Permalink
issue ControlCore-Project#62 fixed empty node without label file can …
Browse files Browse the repository at this point in the history
…be created
  • Loading branch information
Rahuljagwani committed Jan 18, 2023
1 parent d4cc51e commit e2f0813
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/component/modals/NodeDetails.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ const NodeDetails = ({
<input
className="nodeLabelFile"
type="text"
required
label="Node Label file"
placeholder="Select file"
onChange={(e) => {
Expand Down
2 changes: 1 addition & 1 deletion src/config/defaultValidators.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const nodeValidator = `(node, nodes, edges) => {
var regex = /^[A-za-z0-9]+:[A-Za-z0-9.]+$/;
var regex = /^[A-za-z0-9]+[:[A-Za-z0-9.]+]|[^$]$/;
let message = { ok: true, err: null };
if (!regex.test(node.label)) {
message = {
Expand Down

0 comments on commit e2f0813

Please sign in to comment.