Skip to content

Commit ec6f98e

Browse files
authored
Merge pull request #494 from solid/issue#493
fetcher.load is a promise
2 parents 78a8a64 + b23fa0b commit ec6f98e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils/headerFooterHelpers.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export async function getPodOwner (pod: NamedNode, store: LiveStore): Promise<Na
6666
store.any(null, ns.space('storage'), pod, pod)
6767
if (podOwner) {
6868
try {
69-
store.fetcher.load((podOwner as NamedNode).doc())
69+
await store.fetcher.load((podOwner as NamedNode).doc())
7070
} catch (err) {
7171
console.warn('Unable to load profile of pod owner ' + podOwner)
7272
return null
@@ -81,7 +81,7 @@ export async function getPodOwner (pod: NamedNode, store: LiveStore): Promise<Na
8181
const guess = sym(`${pod.uri}profile/card#me`)
8282
try {
8383
// @ts-ignore LiveStore always has fetcher
84-
store.fetcher.load(guess)
84+
await store.fetcher.load(guess)
8585
} catch (err) {
8686
console.error('Ooops. Guessed wrong pod owner webid {$guess} : can\'t load it.')
8787
return null

0 commit comments

Comments
 (0)