Skip to content

Commit a317f74

Browse files
authored
Merge pull request #4 from riteshsangwan/30056412-spanhawk
make clients api compatible with real api's
2 parents 56cc5a9 + 7f2382f commit a317f74

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/app/clients/clients.edit.controller.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ module.controller('billingaccount.EditClientController', ['$scope', '$rootScope'
1515
// fetch initial data
1616
if ($stateParams.clientId) {
1717
ClientService.findClientById($stateParams.clientId).then(function (data) {
18-
$scope.client = data.client;
19-
$scope.endDateOptions.minDate = new Date(data.client.startDate);
20-
$scope.startDateOptions.maxDate = new Date(data.client.endDate);
18+
$scope.client = data;
19+
$scope.endDateOptions.minDate = new Date(data.startDate);
20+
$scope.startDateOptions.maxDate = new Date(data.endDate);
2121
});
2222
}
2323

0 commit comments

Comments
 (0)