Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
fix(collections/calendar): unable to drag to/from all-day (closes #7685)
Elian Doran7b8f1ed6ec68
diff --git a/apps/client/src/widgets/collections/calendar/api.ts b/apps/client/src/widgets/collections/calendar/api.tsindex 934edcb2e4..eef391108d 100644--- a/apps/client/src/widgets/collections/calendar/api.ts+++ b/apps/client/src/widgets/collections/calendar/api.ts@@ -58,8 +58,6 @@ export async function changeEvent(note: FNote, { startDate, endDate, startTime,startAttribute = note.getAttributes("label").filter(attr => attr.name == "calendar:startTime").shift()?.value||"startTime";endAttribute = note.getAttributes("label").filter(attr => attr.name == "calendar:endTime").shift()?.value||"endTime";- if (startTime && endTime) {- setAttribute(note, "label", startAttribute, startTime);- setAttribute(note, "label", endAttribute, endTime);- }+ setAttribute(note, "label", startAttribute, startTime);+ setAttribute(note, "label", endAttribute, endTime);}