diff --git a/app/src/main/java/pl/szczodrzynski/edziennik/ui/dialogs/event/EventManualV2Dialog.kt b/app/src/main/java/pl/szczodrzynski/edziennik/ui/dialogs/event/EventManualV2Dialog.kt index c8b9839c..7d56155f 100644 --- a/app/src/main/java/pl/szczodrzynski/edziennik/ui/dialogs/event/EventManualV2Dialog.kt +++ b/app/src/main/java/pl/szczodrzynski/edziennik/ui/dialogs/event/EventManualV2Dialog.kt @@ -88,12 +88,11 @@ class EventManualV2Dialog( show() } - defaultType?.let { - event.type = it - } - event = editingEvent?.clone() ?: Event().also { event -> event.profileId = profileId + defaultType?.let { + event.type = it + } b.shareSwitch.isChecked = event.sharedBy != null }