Skip to content
Snippets Groups Projects
Unverified Commit 2624d4d8 authored by R Midhun Suresh's avatar R Midhun Suresh Committed by GitHub
Browse files

Merge pull request #82 from vector-im/fix-80

ComposerViewModel may be undefined
parents 3c8df045 a738444e
No related branches found
No related tags found
No related merge requests found
......@@ -38,7 +38,7 @@ export class ChatterboxView extends TemplateView<ChatterboxViewModel> {
),
t.mapView(
(vm) => vm.messageComposerViewModel,
(vm) => (vm.kind === "composer" ? new MessageComposer(vm) : new WaitingForOperatorJoinView())
(vm) => (vm?.kind === "composer" ? new MessageComposer(vm) : new WaitingForOperatorJoinView())
),
t.view(new FooterView(vm.footerViewModel)),
]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment