Click on reference props to go to them

This commit is contained in:
Stefan Zermatten
2023-06-21 16:15:44 +02:00
parent d9ef848c4e
commit 3843fcff97
4 changed files with 54 additions and 8 deletions

View File

@@ -58,7 +58,10 @@ function updateReferenceNodeWork(node, userId) {
node: doc,
};
if (library) {
cache.library = { name: library.name };
cache.library = {
id: library._id,
name: library.name,
};
}
writeCache(node._id, cache);
}

View File

@@ -51,6 +51,10 @@ let ReferenceSchema = new SimpleSchema({
type: Object,
optional: true,
},
'cache.library.id': {
type: String,
optional: true,
},
'cache.library.name': {
type: String,
optional: true,