Skip to content

Commit 96fec02

Browse files
authored
Merge pull request #543 from cestcri/patch-1
Remove duplicate variable definition in code sample
2 parents ec7a8c3 + 7219a07 commit 96fec02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

admin/authentication-support.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ const fetchHydra = (url, options = {}) => baseFetchHydra(url, {
7070
...options,
7171
headers: new Headers(fetchHeaders),
7272
});
73-
const hydraClient = api => hydraClient(api, fetchHydra);
73+
const dataProvider = api => hydraClient(api, fetchHydra);
7474
const apiDocumentationParser = entrypoint => parseHydraDocumentation(entrypoint, { headers: new Headers(fetchHeaders) })
7575
.then(
7676
({ api }) => ({ api }),
@@ -98,7 +98,7 @@ export default props => (
9898
apiDocumentationParser={apiDocumentationParser}
9999
authProvider={authProvider}
100100
entrypoint={entrypoint}
101-
dataProvider={hydraClient}
101+
dataProvider={dataProvider}
102102
/>
103103
);
104104
```

0 commit comments

Comments
 (0)