Skip to content

Commit f9f8bb9

Browse files
author
Fletcher91
committed
[FIX] Issue where this was undefined in execActionByIRI
1 parent d8a75c9 commit f9f8bb9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/LinkedRenderStore.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export class LinkedRenderStore<T> {
8282
this.schema = opts.schema || new Schema(this.store);
8383
this.mapping = opts.mapping || new ComponentStore(this.schema);
8484
// tslint:disable-next-line typedef
85-
const actionMiddleware: MiddlewareFn<T> = () => () => this.execActionByIRI;
85+
const actionMiddleware: MiddlewareFn<T> = () => () => this.execActionByIRI.bind(this);
8686
this.middleware = this.applyMiddleware(...(opts.middleware || []), actionMiddleware);
8787
}
8888

0 commit comments

Comments
 (0)