Skip to content

Commit 6bbfbf3

Browse files
committed
Fix imports
1 parent f71c942 commit 6bbfbf3

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

data-browser/src/views/ErrorPage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ function ErrorPage({ resource }: ResourcePageProps): JSX.Element {
2020

2121
React.useEffect(() => {
2222
// Try again when agent changes
23-
store.fetchResource(subject);
23+
store.fetchResourceFromServer(subject);
2424
}, [agent]);
2525

2626
if (isUnauthorized(resource.error)) {
2727
// This might be a bit too aggressive, but it fixes 'Unauthorized' messages after signing in to a new drive.
28-
store.fetchResource(subject);
28+
store.fetchResourceFromServer(subject);
2929

3030
return (
3131
<ContainerWide>

lib/src/authentication.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,7 @@ const setCookieExpires = (
9696
};
9797

9898
/** Sets a cookie for the current Agent, signing the Authentication. It expires after some default time. */
99-
export const setCookieAuthentication = (store: Store, agent: Agent) => {
100-
const serverURL = store.getServerUrl();
99+
export const setCookieAuthentication = (serverURL: string, agent: Agent) => {
101100
createAuthentication(serverURL, agent).then(auth => {
102101
setCookieExpires(COOKIE_NAME_AUTH, btoa(JSON.stringify(auth)), serverURL);
103102
});

lib/src/client.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ import {
99
ErrorType,
1010
JSONADParser,
1111
parseCommit,
12-
parseJsonADArray,
13-
parseJsonADResource,
14-
removeCookieAuthentication,
1512
Resource,
1613
serializeDeterministically,
1714
setCookieAuthentication,

0 commit comments

Comments
 (0)