add weight causes updating old chart instead of creating new chart, closes #53

This commit is contained in:
azivner
2018-02-17 10:45:00 -05:00
parent 3033f7cc08
commit 1d0220b03d
2 changed files with 90 additions and 72 deletions

View File

@@ -53,6 +53,10 @@ async function getNoteIdsWithAttribute(name) {
}
async function createAttribute(noteId, name, value = "", sourceId = null) {
if (value === null || value === undefined) {
value = "";
}
const now = utils.nowDate();
const attributeId = utils.newAttributeId();