There was an error while loading. Please reload this page.
1 parent 64856bb commit f9f343fCopy full SHA for f9f343f
1 file changed
src/app/services/view.ts
@@ -127,7 +127,10 @@ export class ViewService {
127
128
setCurrentView(view: Object = this.currentView) {
129
this.currentView$.next(view);
130
- this.connectViewCount.next(this.viewList.filter(view => view.connected === true && view.connectMethod.component === 'koko').length);
+ const connectedCount = this.viewList.filter(
131
+ v => v.connected === true && v.connectMethod.component === 'koko' && v.connectMethod.value === 'web_cli'
132
+ ).length;
133
+ this.connectViewCount.next(connectedCount);
134
this.state$.next({action: 'active', view: view});
135
}
136
0 commit comments