Skip to content

Commit d5b66ae

Browse files
committed
adding empty index pattern check
1 parent 44b10f5 commit d5b66ae

File tree

1 file changed

+5
-0
lines changed
  • x-pack/plugins/ml/public/file_datavisualizer/components/import_view

1 file changed

+5
-0
lines changed

x-pack/plugins/ml/public/file_datavisualizer/components/import_view/import_view.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -475,6 +475,11 @@ function isIndexNameValid(name, indexNames) {
475475
}
476476

477477
function isIndexPatternNameValid(name, indexPatternNames, index) {
478+
// if a blank name is entered, the index name will be used so avoid validation
479+
if (name === '') {
480+
return '';
481+
}
482+
478483
if (indexPatternNames.find(i => i === name)) {
479484
return 'Index pattern name already exists';
480485
}

0 commit comments

Comments
 (0)