Skip to content

Commit

Permalink
Merge pull request #1345 from culturecreates/bugfix/issue-84
Browse files Browse the repository at this point in the history
Bugfix/issue 84
  • Loading branch information
AbhishekPAnil authored Sep 20, 2024
2 parents 9fbeca9 + a7c1657 commit 7665258
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/pages/Dashboard/AddEvent/AddEvent.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1340,12 +1340,14 @@ function AddEvent() {

const handleDateTypeChange = (activeDateType) => {
let currentActiveDateValue;

switch (dateType) {
case dateTypes.SINGLE: {
const datePickerValue = form.getFieldValue('datePicker');
currentActiveDateValue = datePickerValue ? [datePickerValue, undefined] : undefined;
case dateTypes.SINGLE:
currentActiveDateValue = form.getFieldValue('datePicker')
? [form.getFieldValue('datePicker'), undefined]
: undefined;
break;
}

case dateTypes.RANGE:
setStartDate(undefined);
setEndDate(undefined);
Expand Down

0 comments on commit 7665258

Please sign in to comment.