diff --git a/src/app/clarin-licenses/clarin-license-table/modal/define-license-form/define-license-form.component.ts b/src/app/clarin-licenses/clarin-license-table/modal/define-license-form/define-license-form.component.ts index 89caeb72f2c..c8353b11f9e 100644 --- a/src/app/clarin-licenses/clarin-license-table/modal/define-license-form/define-license-form.component.ts +++ b/src/app/clarin-licenses/clarin-license-table/modal/define-license-form/define-license-form.component.ts @@ -169,8 +169,17 @@ export class DefineLicenseFormComponent implements OnInit { if (event.target.checked) { form.push(checkBoxValue); } else { - let index = form.findIndex(item => item.id === checkBoxValue.id); - form.splice(index, 1); + // Required Info needs to be checked by some other property, because id is glitching + const index = form.findIndex(item => + item && ( + formName === 'requiredInfo' + ? item.name === checkBoxValue.name + : checkBoxValue.id === item.id) + ); + + if (index !== -1) { + form.splice(index, 1); + } } }