Skip to content

Commit 76d9843

Browse files
authored
fix: validate update event (#25)
* sync dev with main * fix: validate updated event
1 parent b96c5be commit 76d9843

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Deploy docs
1+
name: Deploy Docs
22
on:
33
workflow_dispatch: {}
44
push:

src/components/Week.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,12 @@ function onMouseUp() {
265265
}
266266
267267
if (activeEvent && !creatingEvent) {
268-
emits("event-updated", activeEvent);
268+
if (
269+
activeEvent.startDate != initialState?.startDate ||
270+
activeEvent.endDate != initialState?.endDate
271+
) {
272+
emits("event-updated", activeEvent);
273+
}
269274
}
270275
271276
isDragging = false;

0 commit comments

Comments
 (0)