@@ -9,7 +9,7 @@ import widgets from '../widgets'
99import ns from '../ns'
1010import { logInLoadProfile } from '../authn/authn'
1111import utils from '../utils'
12- import { NamedNode } from 'rdflib'
12+ import { NamedNode , Store } from 'rdflib'
1313import { AuthenticationContext } from '../authn/types'
1414import * 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