Skip to content

Commit

Permalink
type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
berekuk committed Nov 27, 2024
1 parent 3ece677 commit e992277
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export const RelativeValuesDefinitionList: FC<Props> = ({
<div className="grid grid-cols-2 gap-4">
{page.items.map((definition) => (
<RelativeValuesDefinitionCard
key={definition.slug}
key={definition.id}
definition={definition}
showOwner={showOwner}
/>
Expand Down
1 change: 1 addition & 0 deletions packages/hub/src/server/relative-values/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ type DbDefinitionCard = NonNullable<

export function dbDefinitionToDefinitionCard(dbDefinition: DbDefinitionCard) {
return {
id: dbDefinition.id,
slug: dbDefinition.slug,
owner: {
slug: dbDefinition.owner.slug,
Expand Down

0 comments on commit e992277

Please sign in to comment.