Skip to content

Build your personal knowledge base with Trilium Notes

fix(react/ribbon/collection): default property not working

Elian Doranf281e9691d4b
diff --git a/apps/client/src/widgets/ribbon/CollectionPropertiesTab.tsx b/apps/client/src/widgets/ribbon/CollectionPropertiesTab.tsx
index 6180b23212..2594dd6c20 100644
--- a/apps/client/src/widgets/ribbon/CollectionPropertiesTab.tsx
+++ b/apps/client/src/widgets/ribbon/CollectionPropertiesTab.tsx
@@ -140,7 +140,7 @@ function ComboBoxPropertyView({ note, property }: { note: FNote, property: Combo
<FormSelectWithGroups
values={property.options}
keyProperty="value" titleProperty="label"
- currentValue={value ?? ""} onChange={setValue}
+ currentValue={value ?? property.defaultValue} onChange={setValue}
/>
</LabelledEntry>
)