Skip to content

Commit a033db9

Browse files
committed
bl: Fix NodeSelector not validating new node label.
1 parent 970eccb commit a033db9

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

build/app/view/netcreate/components/NodeSelector.jsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -324,9 +324,7 @@ class NodeSelector extends UNISYS.Component {
324324
// Only update if we are the currently active field
325325
// otherwise an Edge might be active
326326
let { activeAutoCompleteId } = this.AppState('ACTIVEAUTOCOMPLETE');
327-
if ( ! ((activeAutoCompleteId==thisIdentifier) &&
328-
(activeAutoCompleteId=='search'))
329-
) return;
327+
if ( activeAutoCompleteId!==thisIdentifier ) return;
330328

331329
let formData = this.state.formData;
332330
formData.label = data.searchLabel;
@@ -437,7 +435,7 @@ class NodeSelector extends UNISYS.Component {
437435
.then((newNodeID)=>{
438436
this.setState({
439437
formData: {
440-
label: '',
438+
label: label,
441439
type: '',
442440
info: '',
443441
notes: '',

0 commit comments

Comments
 (0)