mirror of
https://github.com/zadam/trilium.git
synced 2025-11-05 04:45:47 +01:00
note cache refactoring WIP
This commit is contained in:
@@ -200,7 +200,7 @@ export default class PromotedAttributesWidget extends TabAwareWidget {
|
||||
this.promotedAttributeChanged(event);
|
||||
});
|
||||
|
||||
$input.setSelectedPath(valueAttr.value);
|
||||
$input.setSelectedNotePath(valueAttr.value);
|
||||
}
|
||||
else {
|
||||
ws.logError("Unknown attribute type=" + valueAttr.type);
|
||||
@@ -250,7 +250,7 @@ export default class PromotedAttributesWidget extends TabAwareWidget {
|
||||
value = $attr.is(':checked') ? "true" : "false";
|
||||
}
|
||||
else if ($attr.prop("attribute-type") === "relation") {
|
||||
const selectedPath = $attr.getSelectedPath();
|
||||
const selectedPath = $attr.getSelectedNotePath();
|
||||
|
||||
value = selectedPath ? treeService.getNoteIdFromNotePath(selectedPath) : "";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user