mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
stop #workspaceTemplate from being inherited (should have the same special behavior as #template)
This commit is contained in:
@@ -403,7 +403,7 @@ class Note extends AbstractEntity {
|
||||
templateAttributes.push(
|
||||
...templateNote.__getAttributes(newPath)
|
||||
// template attr is used as a marker for templates, but it's not meant to be inherited
|
||||
.filter(attr => !(attr.type === 'label' && attr.name === 'template'))
|
||||
.filter(attr => !(attr.type === 'label' && (attr.name === 'template' || attr.name === 'workspacetemplate')))
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user