reverted check to fix default autocompletion type

This commit is contained in:
Georgy Litvinov 2023-06-22 09:49:04 +02:00
parent 5ff98823ca
commit 77d63f2c5f

View file

@ -644,8 +644,7 @@ var customForm = {
if ( this.templateDefinedAcTypes && !this.defaultAcType.length ) { if ( this.templateDefinedAcTypes && !this.defaultAcType.length ) {
this.defaultAcType = this.acTypes[acTypeKey]; this.defaultAcType = this.acTypes[acTypeKey];
} }
var selectedTypeLength = selectedType.val().length; if ( selectedType.val().length ) {
if ( selectedTypeLength !== 'undefined') {
this.acTypes[acTypeKey] = selectedType.val(); this.acTypes[acTypeKey] = selectedType.val();
this.typeName = selectedType.html(); this.typeName = selectedType.html();
if ( this.editMode == 'edit' ) { if ( this.editMode == 'edit' ) {