Skip to content

Commit

Permalink
fix: switch to lodash for groupBy
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaKGoldberg committed Sep 11, 2024
1 parent 2b5d183 commit 80b996a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@
"dependencies": {
"@astrojs/vercel": "^7.7.2",
"@konami-emoji-blast/astro": "^0.0.1",
"@types/lodash": "^4.17.7",
"konami-emoji-blast": "^0.5.3",
"lodash": "^4.17.21",
"sharp": "^0.33.4"
},
"devDependencies": {
Expand Down
11 changes: 11 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion src/components/Sponsors.astro
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
---
import _ from "lodash";
import { Image } from "astro:assets";
import { sponsorsBySlug } from "~/data/sponsors";
Expand All @@ -7,7 +8,7 @@ import BodyText from "./BodyText.astro";
import FullSection from "./FullSection.astro";
import HeadingFlanked from "./HeadingFlanked.astro";
const sponsorGroups = Object.groupBy(
const sponsorGroups = _.groupBy(
Object.values(sponsorsBySlug),
(sponsor) => sponsor.placement,
);
Expand Down

0 comments on commit 80b996a

Please sign in to comment.