Skip to content

Commit

Permalink
fixing grouping locally
Browse files Browse the repository at this point in the history
  • Loading branch information
Courey authored and lpsinger committed Feb 7, 2025
1 parent 9fc7b85 commit d6f64a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sandbox-search.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default async function () {
const text = await readFile('sandbox-seed.json', { encoding: 'utf-8' })
const { circulars, synonyms } = JSON.parse(text)
const groups = Object.entries(
Object.groupBy(synonyms, ({ synonymId }) => ({ synonymId }))
Object.groupBy(synonyms, ({ synonymId }) => synonymId)
).flatMap(([synonymId, values]) => [
{
synonymId,
Expand Down

0 comments on commit d6f64a8

Please sign in to comment.