mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
attribute value is now non-null, fixes #52
This commit is contained in:
@@ -52,7 +52,7 @@ async function getNoteIdsWithAttribute(name) {
|
||||
WHERE notes.isDeleted = 0 AND attributes.isDeleted = 0 AND attributes.name = ? AND attributes.isDeleted = 0`, [name]);
|
||||
}
|
||||
|
||||
async function createAttribute(noteId, name, value = null, sourceId = null) {
|
||||
async function createAttribute(noteId, name, value = "", sourceId = null) {
|
||||
const now = utils.nowDate();
|
||||
const attributeId = utils.newAttributeId();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user