Skip to content

Commit 2d31a30

Browse files
authored
Bugfix in userService which returns incorrect data after updating a user.
The update method returned the parent object (AxiosResponse) instead of the GetUserOutput. Corrected in the same way as the code is written in the other services.
1 parent 5d1d4a2 commit 2d31a30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reactjs/src/services/user/userService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class UserService {
1515

1616
public async update(updateUserInput: UpdateUserInput) {
1717
let result = await http.put('api/services/app/User/Update', updateUserInput);
18-
return result.data;
18+
return result.data.result;
1919
}
2020

2121
public async delete(entityDto: EntityDto) {

0 commit comments

Comments
 (0)