Skip to content

Commit 732cecf

Browse files
larseggertNGPixel
andauthored
fix: Re-enable interim series "add session" button (ietf-tools#5485)
Fixes ietf-tools#5478 Co-authored-by: Nicolas Giard <github@ngpixel.com>
1 parent ec7b974 commit 732cecf

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

ietf/static/js/meeting-interim-request.js

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,15 @@ const interimRequest = (function() {
4444
// increment formset counter
4545
template.find(':input')
4646
.each(function () {
47-
const name = $(this)
48-
.attr('name')
49-
.replace('-' + (total - 1) + '-', '-' + total + '-');
50-
const id = 'id_' + name;
51-
$(this)
52-
.attr({ name: name, id: id })
53-
.val('');
47+
let name = $(this)
48+
.attr('name');
49+
if (name) {
50+
name.replace('-' + (total - 1) + '-', '-' + total + '-');
51+
const id = 'id_' + name;
52+
$(this)
53+
.attr({ name: name, id: id })
54+
.val('');
55+
}
5456
});
5557

5658
template.find('label')

0 commit comments

Comments
 (0)