mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
force attribute value to be a string, closes #2104
This commit is contained in:
parent
86a53ceebb
commit
13a16e8251
11346
package-lock.json
generated
11346
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -56,7 +56,7 @@
|
|||||||
"is-svg": "4.3.1",
|
"is-svg": "4.3.1",
|
||||||
"jimp": "0.16.1",
|
"jimp": "0.16.1",
|
||||||
"joplin-turndown-plugin-gfm": "1.0.12",
|
"joplin-turndown-plugin-gfm": "1.0.12",
|
||||||
"jsdom": "16.6.0",
|
"jsdom": "16.7.0",
|
||||||
"mime-types": "2.1.32",
|
"mime-types": "2.1.32",
|
||||||
"multer": "1.4.2",
|
"multer": "1.4.2",
|
||||||
"node-abi": "2.30.0",
|
"node-abi": "2.30.0",
|
||||||
@ -76,12 +76,12 @@
|
|||||||
"tmp": "^0.2.1",
|
"tmp": "^0.2.1",
|
||||||
"turndown": "7.1.1",
|
"turndown": "7.1.1",
|
||||||
"unescape": "1.0.1",
|
"unescape": "1.0.1",
|
||||||
"ws": "7.5.3",
|
"ws": "8.0.0",
|
||||||
"yauzl": "2.10.0"
|
"yauzl": "2.10.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"cross-env": "7.0.3",
|
"cross-env": "7.0.3",
|
||||||
"electron": "13.1.7",
|
"electron": "13.1.8",
|
||||||
"electron-builder": "22.11.7",
|
"electron-builder": "22.11.7",
|
||||||
"electron-packager": "15.3.0",
|
"electron-packager": "15.3.0",
|
||||||
"electron-rebuild": "2.3.5",
|
"electron-rebuild": "2.3.5",
|
||||||
@ -90,7 +90,7 @@
|
|||||||
"jsdoc": "3.6.7",
|
"jsdoc": "3.6.7",
|
||||||
"lorem-ipsum": "2.0.3",
|
"lorem-ipsum": "2.0.3",
|
||||||
"rcedit": "3.0.1",
|
"rcedit": "3.0.1",
|
||||||
"webpack": "5.47.0",
|
"webpack": "5.49.0",
|
||||||
"webpack-cli": "4.7.2"
|
"webpack-cli": "4.7.2"
|
||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
|
@ -906,6 +906,8 @@ class Note extends AbstractEntity {
|
|||||||
const attributes = this.getOwnedAttributes();
|
const attributes = this.getOwnedAttributes();
|
||||||
const attr = attributes.find(attr => attr.type === type && attr.name === name);
|
const attr = attributes.find(attr => attr.type === type && attr.name === name);
|
||||||
|
|
||||||
|
value = value !== null && value !== undefined ? value.toString() : "";
|
||||||
|
|
||||||
if (attr) {
|
if (attr) {
|
||||||
if (attr.value !== value) {
|
if (attr.value !== value) {
|
||||||
attr.value = value;
|
attr.value = value;
|
||||||
@ -919,7 +921,7 @@ class Note extends AbstractEntity {
|
|||||||
noteId: this.noteId,
|
noteId: this.noteId,
|
||||||
type: type,
|
type: type,
|
||||||
name: name,
|
name: name,
|
||||||
value: value !== undefined ? value : ""
|
value: value
|
||||||
}).save();
|
}).save();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user