adding new attributes in case duplicates and empty cells
@@ -39,8 +39,6 @@ export default class ngbInfoRowsController {
onClickAddBtn () {
if (this.attributes && this.attributes.length) {
- const lastAttribute = this.attributes[this.attributes.length - 1];
- if (lastAttribute.name && lastAttribute.value) {
this.attributes.push({
name: '',
value: '',
@@ -50,4 +48,3 @@ export default class ngbInfoRowsController {
}
}
}
-}
