forked from mystiq/hydrogen-web
Use ifView instead of mapView
Signed-off-by: RMidhunSuresh <rmidhunsuresh@gmail.com>
This commit is contained in:
parent
694b627309
commit
4946683b23
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ export class RightPanelView extends TemplateView {
|
|||
};
|
||||
return t.div({ className: "RightPanelView" },
|
||||
[
|
||||
t.mapView(vm => vm.activeViewModel && vm, vm => vm ? new ButtonsView(vm) : null),
|
||||
t.ifView(vm => vm.activeViewModel, vm => new ButtonsView(vm)),
|
||||
t.mapView(vm => vm.activeViewModel, vm => vm ? new viewFromType[vm.type](vm) : new LoadingView())
|
||||
]
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue