mirror of
https://github.com/zadam/trilium.git
synced 2025-11-05 04:45:47 +01:00
split out attribute_editor widget, WIP
This commit is contained in:
@@ -54,7 +54,7 @@ export default class PromotedAttributesWidget extends TabAwareWidget {
|
||||
const definitionType = definitionAttr.name.startsWith('label:') ? 'label' : 'relation';
|
||||
const valueName = definitionAttr.name.substr(definitionType.length + 1);
|
||||
|
||||
let valueAttrs = attributes.filter(el => el.name === definitionAttr.name && el.type === definitionType);
|
||||
let valueAttrs = attributes.filter(el => el.name === valueName && el.type === 'label');
|
||||
|
||||
if (valueAttrs.length === 0) {
|
||||
valueAttrs.push({
|
||||
|
||||
Reference in New Issue
Block a user