mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 20:06:08 +01:00 
			
		
		
		
	fix validation issue + attribute not triggering change event on delete
This commit is contained in:
		@@ -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) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user