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