mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
defensive programming, #3089
This commit is contained in:
@@ -97,6 +97,11 @@ function getNotesAndBranchesAndAttributes(noteIds) {
|
||||
for (const attributeId of collectedAttributeIds) {
|
||||
const attribute = becca.attributes[attributeId];
|
||||
|
||||
if (!attribute) {
|
||||
log.error(`Could not find attribute for attributeId=${attributeId}`);
|
||||
continue;
|
||||
}
|
||||
|
||||
attributes.push({
|
||||
attributeId: attribute.attributeId,
|
||||
noteId: attribute.noteId,
|
||||
|
||||
Reference in New Issue
Block a user