mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02: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