mirror of
https://github.com/zadam/trilium.git
synced 2025-11-03 11:56:01 +01:00
server-ts: Fix error with sanitize_attribute_name
This commit is contained in:
@@ -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
|
||||||
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user