Skip to content

Commit

Permalink
Update leftover hasOwn
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeWags committed Jan 28, 2025
1 parent 9a757b7 commit b9c9379
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/upset/src/atoms/elementsSelectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ export const aggregateSelectedCount = selectorFamily<number, Aggregate>({
get: (agg: Aggregate) => ({ get }) => {
let total = 0;
Object.entries(agg.items.values as { [id: string]: BaseIntersection | Aggregate }).forEach(([id, value]) => {
total += Object.hasOwn(value, 'aggregateBy')
total += Object.prototype.hasOwnProperty.call(value, 'aggregateBy')
? get(aggregateSelectedCount(value as Aggregate))
: get(subsetSelectedCount(id));
});
Expand Down

0 comments on commit b9c9379

Please sign in to comment.