non null note title and content in the DB schema, allow saving non-valid JSON notes, children overview style changes

This commit is contained in:
azivner
2018-04-11 00:10:11 -04:00
parent 7b59a665dd
commit a4eafb934f
8 changed files with 189 additions and 138 deletions

View File

@@ -6,8 +6,11 @@ class NoteFull extends NoteShort {
this.content = row.content;
if (this.isJson()) {
this.jsonContent = JSON.parse(this.content);
if (this.content !== "" && this.isJson()) {
try {
this.jsonContent = JSON.parse(this.content);
}
catch(e) {}
}
}
}