small fixes

This commit is contained in:
zadam
2022-12-22 23:11:12 +01:00
parent 46f40ee534
commit 29713de6cd
3 changed files with 4 additions and 4 deletions

View File

@@ -49,7 +49,7 @@ function updateNoteAttribute(req) {
}
}
else {
if (body.type === 'relation' && !body.value.trim()) {
if (body.type === 'relation' && !body.value?.trim()) {
return {};
}
@@ -68,6 +68,8 @@ function updateNoteAttribute(req) {
attribute.markAsDeleted();
}
console.log(attribute);
attribute.save();
return {