mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
null check
This commit is contained in:
parent
75c8e700d4
commit
51e5f591b2
@ -6,6 +6,10 @@ const becca = require('../becca/becca');
|
||||
const Attribute = require('../becca/entities/attribute');
|
||||
|
||||
function runAttachedRelations(note, relationName, originEntity) {
|
||||
if (!note) {
|
||||
return;
|
||||
}
|
||||
|
||||
// same script note can get here with multiple ways, but execute only once
|
||||
const notesToRun = new Set(
|
||||
note.getRelations(relationName)
|
||||
|
Loading…
x
Reference in New Issue
Block a user