fix: Re-enable interim series "add session" button (#5485)
Fixes #5478 Co-authored-by: Nicolas Giard <github@ngpixel.com>
This commit is contained in:
parent
ec7b974d52
commit
732cecf0e9
|
@ -44,13 +44,15 @@ const interimRequest = (function() {
|
|||
// increment formset counter
|
||||
template.find(':input')
|
||||
.each(function () {
|
||||
const name = $(this)
|
||||
.attr('name')
|
||||
.replace('-' + (total - 1) + '-', '-' + total + '-');
|
||||
let name = $(this)
|
||||
.attr('name');
|
||||
if (name) {
|
||||
name.replace('-' + (total - 1) + '-', '-' + total + '-');
|
||||
const id = 'id_' + name;
|
||||
$(this)
|
||||
.attr({ name: name, id: id })
|
||||
.val('');
|
||||
}
|
||||
});
|
||||
|
||||
template.find('label')
|
||||
|
|
Loading…
Reference in a new issue