Skip to content

Commit

Permalink
Review response: removed unnecessary assign
Browse files Browse the repository at this point in the history
  • Loading branch information
romanblanco committed Jun 25, 2019
1 parent fc33cf7 commit 20a84fe
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 @@ -45,9 +45,9 @@ export default class DialogDataService {

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

Expand Down

0 comments on commit 20a84fe

Please sign in to comment.