mirror of
https://github.com/zadam/trilium.git
synced 2025-11-12 16:25:51 +01:00
fix(collections/calendar): unable to drag to/from all-day (closes #7685)
This commit is contained in:
@@ -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";
|
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";
|
endAttribute = note.getAttributes("label").filter(attr => attr.name == "calendar:endTime").shift()?.value||"endTime";
|
||||||
|
|
||||||
if (startTime && endTime) {
|
|
||||||
setAttribute(note, "label", startAttribute, startTime);
|
setAttribute(note, "label", startAttribute, startTime);
|
||||||
setAttribute(note, "label", endAttribute, endTime);
|
setAttribute(note, "label", endAttribute, endTime);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user