mirror of
https://github.com/TriliumNext/Trilium.git
synced 2025-12-11 19:44:00 -06:00
fix(collections/calendar): unable to drag to/from all-day (closes #7685)
This commit is contained in:
parent
b54765113e
commit
7b8f1ed6ec
@ -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);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user