Skip to content

Commit

Permalink
p
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] committed Sep 22, 2017
1 parent dd0008c commit 92bab50
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/modules/PROPERTY/components/Contract/SubletAddUp.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,9 @@ class SubletAddUp extends React.Component {
)
if (adopt) {
let json = this.props.form.getFieldsValue()
json['subletStartDate'] = json.subletStartDate.format('YYYY-MM-DD')
json['subletEndDate'] = json.subletEndDate.format('YYYY-MM-DD')

json['subletStartDate'] = json.subletStartDate ? json.subletStartDate.format('YYYY-MM-DD') : null
json['subletEndDate'] = json.subletEndDate ? json.subletEndDate.format('YYYY-MM-DD') : null
json['roomNum'] = json.roomNum.toString()
json['buildId'] = this.props.data.contract.buildId
json['clientId'] = this.props.data.contract.clientId
Expand Down

0 comments on commit 92bab50

Please sign in to comment.