Skip to content

Commit 83d2884

Browse files
dunglasmysiar
authored andcommitted
Fix the new fetch implementation (#46)
1 parent 6dd326f commit 83d2884

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/react-common/utils/fetch.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { SubmissionError } from 'redux-form';
2-
import { API_HOST, API_PATH } from './_entrypoint';
2+
import { API_HOST, API_PATH } from '../config/_entrypoint';
33

44
const jsonLdMimeType = 'application/ld+json';
55

6-
export default function fetch(url, options = {}) {
6+
export default function (url, options = {}) {
77
if ('undefined' === typeof options.headers) options.headers = new Headers();
88
if (null === options.headers.get('Accept')) options.headers.set('Accept', jsonLdMimeType);
99

0 commit comments

Comments
 (0)