diff --git a/packages/flux-editor/src/flux-editor.ts b/packages/flux-editor/src/flux-editor.ts index 020e8b4e3..c117b63d9 100644 --- a/packages/flux-editor/src/flux-editor.ts +++ b/packages/flux-editor/src/flux-editor.ts @@ -127,7 +127,7 @@ export default class MyElement extends LitElement { editor: Editor | null; @state() - subject: SubjectRepository<{ + repo: SubjectRepository<{ [x: string]: any; }>; @@ -368,7 +368,7 @@ export default class MyElement extends LitElement { } async submit() { - const model = new SubjectRepository(Message, { + const repo = new SubjectRepository(Message, { perspective: this.perspective, source: this.source, });