Skip to content

Commit 1c0e253

Browse files
authored
Merge pull request #2757 from opossum-tool/feat/sort_common_licenses_to_top
feat: sort common licenses to top
2 parents 1a7fba5 + 59ff835 commit 1c0e253

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Frontend/Components/AttributionForm/PackageAutocomplete/PackageAutocomplete.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ export function PackageAutocomplete({
8383

8484
const options = useMemo(
8585
() => [
86+
...defaults,
8687
...sortBy(
8788
Object.entries(
8889
groupBy(attributions, (attribution) =>
@@ -117,7 +118,6 @@ export function PackageAutocomplete({
117118
})),
118119
({ count }) => -(count ?? 0),
119120
),
120-
...defaults,
121121
],
122122
[attribute, attributions, defaults, signals],
123123
);

0 commit comments

Comments
 (0)