Skip to content

Build your personal knowledge base with Trilium Notes

fix(attributes): show 'Create note' in promoted relation autocomplete (closes #8187)

Elian Doran1660bef1f369
diff --git a/apps/client/src/widgets/PromotedAttributes.tsx b/apps/client/src/widgets/PromotedAttributes.tsx
index f86cbeb5cd..248e546881 100644
--- a/apps/client/src/widgets/PromotedAttributes.tsx
+++ b/apps/client/src/widgets/PromotedAttributes.tsx
@@ -320,6 +320,7 @@ function RelationInput({ inputId, ...props }: CellProps & { inputId: string }) {
<NoteAutocomplete
id={inputId}
noteId={props.cell.valueAttr.value}
+ opts={{ allowCreatingNotes: true }}
noteIdChanged={async (value) => {
const { note, cell, componentId, setCells } = props;
await updateAttribute(note, cell, componentId, value, setCells);