Skip to content

Commit

Permalink
fix: remove duplicate formatApiPath in userUiConfigApi hook (#2318)
Browse files Browse the repository at this point in the history
  • Loading branch information
ivarconr committed Nov 3, 2022
1 parent 0a85560 commit 4937b23
Showing 1 changed file with 1 addition and 2 deletions.
@@ -1,5 +1,4 @@
import useAPI from '../useApi/useApi';
import { formatApiPath } from 'utils/formatPath';

export const useUiConfigApi = () => {
const { makeRequest, createRequest, errors, loading } = useAPI({
Expand All @@ -13,7 +12,7 @@ export const useUiConfigApi = () => {
frontendSettings: { frontendApiOrigins },
};
const req = createRequest(
formatApiPath('api/admin/ui-config'),
'api/admin/ui-config',
{ method: 'POST', body: JSON.stringify(payload) },
'setFrontendSettings'
);
Expand Down

0 comments on commit 4937b23

Please sign in to comment.