Skip to content

Commit

Permalink
revert middleware change
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinlog committed Jun 17, 2020
1 parent 1605736 commit c0bdfea
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ export const policyDetailsMiddlewareFactory: ImmutableMiddlewareFactory<PolicyDe
let policyItem: PolicyData;

try {
const response = await sendGetDatasource(http, id);
policyItem = response.item;
policyItem = (await sendGetDatasource(http, id)).item;
} catch (error) {
dispatch({
type: 'serverFailedToReturnPolicyDetailsData',
Expand Down

0 comments on commit c0bdfea

Please sign in to comment.