mirror of
https://github.com/zadam/trilium.git
synced 2025-11-05 21:05:55 +01:00
note cache refactoring
This commit is contained in:
@@ -98,10 +98,11 @@ async function updateNoteAttributes(req) {
|
||||
|
||||
if (attribute.type !== attributeEntity.type
|
||||
|| attribute.name !== attributeEntity.name
|
||||
|| (attribute.type === 'relation' && attribute.value !== attributeEntity.value)) {
|
||||
|| (attribute.type === 'relation' && attribute.value !== attributeEntity.value)
|
||||
|| attribute.isInheritable !== attributeEntity.isInheritable) {
|
||||
|
||||
if (attribute.type !== 'relation' || !!attribute.value.trim()) {
|
||||
const newAttribute = attributeEntity.createClone(attribute.type, attribute.name, attribute.value);
|
||||
const newAttribute = attributeEntity.createClone(attribute.type, attribute.name, attribute.value, attribute.isInheritable);
|
||||
await newAttribute.save();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user