Skip to content

Commit f9f343f

Browse files
fit2botw940853815
andauthored
fix: koko web_cli connectViewCount (#1399)
Co-authored-by: wangruidong <940853815@qq.com>
1 parent 64856bb commit f9f343f

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)