Skip to content

Commit 96dc171

Browse files
author
Tim Berners-Lee
committed
overrode LiveStore type bugs
1 parent 35b3c77 commit 96dc171

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/acl/add-agent-buttons.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import widgets from '../widgets'
99
import ns from '../ns'
1010
import { logInLoadProfile } from '../authn/authn'
1111
import utils from '../utils'
12-
import { NamedNode } from 'rdflib'
12+
import { NamedNode, Store } from 'rdflib'
1313
import { AuthenticationContext } from '../authn/types'
1414
import * as debug from '../debug'
1515

@@ -185,15 +185,15 @@ export class AddAgentButtons {
185185

186186
private async renderAppsTable (eventContext: AuthenticationContext): Promise<string> {
187187
await logInLoadProfile(eventContext)
188-
const trustedApps = this.groupList.store.each(eventContext.me, ns.acl('trustedApp')) as Array<NamedNode>
189-
const trustedOrigins = trustedApps.flatMap(app => this.groupList.store.each(app, ns.acl('origin')))
188+
const trustedApps = (this.groupList.store as Store).each(eventContext.me, ns.acl('trustedApp')) as Array<NamedNode> // @@ TODO fix as
189+
const trustedOrigins = trustedApps.flatMap(app => (this.groupList.store as Store).each(app, ns.acl('origin'))) // @@ TODO fix as
190190

191191
this.barElement.appendChild(this.groupList.controller.dom.createElement('p')).textContent = `You have ${trustedOrigins.length} selected web apps.`
192192
return new Promise((resolve, reject) => {
193193
const appsTable = this.barElement.appendChild(this.groupList.controller.dom.createElement('table'))
194194
appsTable.classList.add(this.groupList.controller.classes.trustedAppAddApplicationsTable)
195195
trustedApps.forEach(app => {
196-
const origin = this.groupList.store.any(app, ns.acl('origin'))
196+
const origin = (this.groupList.store as Store).any(app, ns.acl('origin')) // @@ TODO fix as
197197
if (!origin) {
198198
reject(new Error(`Unable to pick app: ${app.value}`))
199199
}

0 commit comments

Comments
 (0)