Skip to content

Commit

Permalink
Corrected values for DialogFieldDateTimeControl after commit 7dcb1f7
Browse files Browse the repository at this point in the history
  • Loading branch information
romanblanco committed Jul 2, 2019
1 parent ffdd33d commit bd20eb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/dialog-user/services/dialogData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ export default class DialogDataService {
}

if (field.type === 'DialogFieldDateTimeControl') {
if (_.isNull(field.values) || _.isUndefined(field.values)) {
if (_.isNull(field.default_value) || _.isUndefined(field.default_value)) {
field.dateField = field.timeField = new Date();
} else {
field.dateField = field.timeField = new Date(data.values);
field.dateField = field.timeField = new Date(data.default_value);
}
}

Expand Down

0 comments on commit bd20eb4

Please sign in to comment.