Skip to content

Commit

Permalink
fix: generic declaration towards uniqBy
Browse files Browse the repository at this point in the history
  • Loading branch information
isekovanic committed Feb 12, 2025
1 parent ddd28b0 commit ae1b610
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/channel_manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ export class ChannelManager<SCG extends ExtendableGenerics = DefaultGenerics> {
});
const nextChannels = await this.client.queryChannels(filters, sort, options, this.stateOptions);
const { channels } = this.state.getLatestValue();
const newChannels = uniqBy([...(channels || []), ...nextChannels], 'cid');
const newChannels = uniqBy<Channel<SCG>>([...(channels || []), ...nextChannels], 'cid');
const newOptions = { ...options, offset: newChannels.length };

this.state.partialNext({
Expand Down

0 comments on commit ae1b610

Please sign in to comment.