Skip to content

Commit

Permalink
Update updates-view.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
xHomu committed Oct 3, 2024
1 parent 77eb064 commit 5c3671f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/routes/_editor+/blocks+/updates/updates-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ export function BlockUpdatesView({ element }: Props) {
className="divide-color-sub border-color-sub bg-3 shadow-1 divide-y
overflow-hidden rounded-lg border shadow-sm"
>
{updateResults?.map((row) => (
{updateResults?.map((row, i) => (
<section
key={row.id}
key={i}
className="flex odd:bg-zinc-50 dark:odd:bg-dark350 mobile:max-[450px]:min-h-12 items-center "
>
<time
Expand All @@ -48,8 +48,8 @@ export function BlockUpdatesView({ element }: Props) {
<span className="divide-color flex-grow divide-y text-sm min-w-0">
{row.entry?.length === 0 ? null : (
<>
{row.entry?.map((item) => (
<div key={item.id} className="p-3 pl-0">
{row.entry?.map((item, j) => (
<div key={j} className="p-3 pl-0">
<EditorView
autoWidth
data={item.content as Descendant[]}
Expand Down

0 comments on commit 5c3671f

Please sign in to comment.