Skip to content

Commit

Permalink
fix(bcs): contact not emit
Browse files Browse the repository at this point in the history
  • Loading branch information
devcui committed Aug 25, 2023
1 parent 2202e26 commit be30cbe
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions packages/bcs/yunzai-table-user/yunzai-table-user.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,16 +193,15 @@ export class YunzaiTableUserComponent implements OnInit, AfterViewInit {

setupPropsChecked(): void {
if (!this.props || !this.props.check || !this.props.check.data) return;
let checked = this.props.check.data
this.state.check.data = this.props.check.data
if (this.userIds.length > 0) {
this.service.usersByIds(this.userIds)
.pipe(
takeUntil(this.$destroy)
)
.subscribe((users) => {
checked = checked.concat(users)
this.state.check.data = checked
this.state.check.data = this.state.check.data.concat(users)
this.onChecked.emit(this.state.check.data as any)
})
} else {
this.onChecked.emit(this.state.check.data as any)
}
}

Expand Down

0 comments on commit be30cbe

Please sign in to comment.