Skip to content

Commit

Permalink
hotfix: fetch policy schema (#1621)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreyNenashev authored Feb 13, 2024
1 parent 4026a71 commit 4d523dd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions odd-platform-ui/src/redux/thunks/policy.thunks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,8 @@ export const fetchPolicyDetails = handleResponseAsyncThunk<
export const fetchPolicySchema = handleResponseAsyncThunk<Record<string, unknown>, void>(
actions.fetchPolicySchemaActType,
async () => {
const schema = await policyApi.getPolicySchema();
try {
return JSON.parse(schema);
return (await policyApi.getPolicySchema()) as unknown as Record<string, unknown>;
} catch (e) {
throw new Error(e?.toString());
}
Expand Down

0 comments on commit 4d523dd

Please sign in to comment.