Skip to content

Commit 33ca7fc

Browse files
committed
fix: koko web_cli connectViewCount
1 parent 512d1b5 commit 33ca7fc

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/app/services/view.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,10 @@ export class ViewService {
127127

128128
setCurrentView(view: Object = this.currentView) {
129129
this.currentView$.next(view);
130-
this.connectViewCount.next(this.viewList.filter(view => view.connected === true && view.connectMethod.component === 'koko').length);
130+
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);
131134
this.state$.next({action: 'active', view: view});
132135
}
133136
}

0 commit comments

Comments
 (0)