fix validation issue + attribute not triggering change event on delete

This commit is contained in:
azivner
2018-08-13 09:39:07 +02:00
parent 297b536ebc
commit f071d3f651
2 changed files with 2 additions and 2 deletions

View File

@@ -227,7 +227,7 @@ function AttributesModel() {
this.isEmptyName = function(index) {
const cur = self.ownedAttributes()[index]();
return cur.name.trim() === "" && (cur.attributeId !== "" || cur.labelValue !== "" || cur.relationValue);
return cur.name.trim() === "" && !cur.isDeleted && (cur.attributeId !== "" || cur.labelValue !== "" || cur.relationValue);
};
this.getTargetAttribute = function(target) {