Fixed issue with single line

This commit is contained in:
José González 2021-06-14 08:16:35 +02:00
parent f8f6016c21
commit e17b63e6fc
1 changed files with 4 additions and 0 deletions

View File

@ -1004,6 +1004,10 @@ class ExternalTools extends HTML
if (parseInt(lineNumber) >= 1 && lineCount > 1) {
$("#custom_row_" + lineNumber).remove();
} else if (lineCount === 1) {
$("#custom_row_" + lineNumber).find('input').each(function() {
$(this).val('');
});
}
if (lineCount === 1) {