@rivet-health/design-system 42.0.2 → 42.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4,7 +4,7 @@ import * as i1 from "@angular/common";
4
4
  import { CommonModule, CurrencyPipe, DatePipe as DatePipe$1, DecimalPipe, PercentPipe } from "@angular/common";
5
5
  import { BehaviorSubject, ReplaySubject, Subject, combineLatest, concatWith, connectable, distinctUntilChanged, filter, from, fromEvent, map, merge, mergeScan, of, scan, share, shareReplay, skip, skipUntil, startWith, switchMap, takeUntil, tap } from "rxjs";
6
6
  import { timeDay, timeDays, timeMonth, timeMonths, timeSunday, timeWeek, timeYear, timeYears, utcDay, utcMonth, utcWeek, utcYear } from "d3-time";
7
- import { cloneDeep, debounce, defaultsDeep, difference, flattenDeep, isEqual, isNumber, orderBy, partition, range, sortBy, sum, sumBy, toInteger, union, uniq, uniqueId } from "lodash";
7
+ import { cloneDeep, debounce, defaultsDeep, difference, flattenDeep, isEqual, isNumber, orderBy, partition, range, sortBy, sum, sumBy, toInteger, union, uniq, uniqBy, uniqueId } from "lodash";
8
8
  import { timeFormat, utcFormat } from "d3-time-format";
9
9
  import Fuse from "fuse.js";
10
10
  import { distinctUntilChanged as distinctUntilChanged$1, map as map$1 } from "rxjs/operators";
@@ -3456,7 +3456,7 @@ var RivSelect;
3456
3456
  });
3457
3457
  return filteredOptions;
3458
3458
  }
3459
- const filteredOptions = filterOptions(getTopLevelOptions(data));
3459
+ const filteredOptions = filterOptions(uniqBy(getTopLevelOptions(data), (option) => option.id));
3460
3460
  const scoreMap = new Map(matchedOptions.map((result) => [result.item.id, result.score ?? 0]));
3461
3461
  const ordered = sortBy(filteredOptions, (option) => {
3462
3462
  function calculateScore(option) {