Skip to content

Commit

Permalink
[SDESK-4410] Bug when setting time for Coverage Schedule Date
Browse files Browse the repository at this point in the history
  • Loading branch information
nrvikas committed Jul 1, 2019
1 parent 62a3a3e commit 758af77
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions client/components/Coverages/CoverageEditor/CoverageForm.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ export class CoverageForm extends React.Component {
if (!get(value, 'planning.scheduled')) {
finalValue = moment().hour(v.hour())
.minute(v.minute());
} else {
// Set the date from the original date
finalValue = value.planning.scheduled.clone().hour(v.hour())
.minute(v.minute());
}
} else {
onChange(f, v);
Expand Down

0 comments on commit 758af77

Please sign in to comment.