mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 21:11:30 +08:00 
			
		
		
		
	server-ts: Fix error with sanitize_attribute_name
This commit is contained in:
		
							parent
							
								
									45a6c9558f
								
							
						
					
					
						commit
						b8ccf5ba8f
					
				| @ -183,7 +183,7 @@ class BAttribute extends AbstractBeccaEntity<BAttribute> { | |||||||
|             this.validate(); |             this.validate(); | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         this.name = sanitizeAttributeName(this.name); |         this.name = sanitizeAttributeName.sanitizeAttributeName(this.name); | ||||||
| 
 | 
 | ||||||
|         if (!this.value) { |         if (!this.value) { | ||||||
|             // null value isn't allowed
 |             // null value isn't allowed
 | ||||||
|  | |||||||
| @ -13,4 +13,6 @@ function sanitizeAttributeName(origName: string) { | |||||||
| } | } | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| export = sanitizeAttributeName; | export = { | ||||||
|  |     sanitizeAttributeName | ||||||
|  | }; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Elian Doran
						Elian Doran