Skip to content

Commit

Permalink
fix: fix skeleton list items error as all keys undefined (#60)
Browse files Browse the repository at this point in the history
* fix: fix skeleton list items error as all keys undefined

* chore: add changeset

* fix: fix changeset type
  • Loading branch information
Jamiewarb authored Jul 2, 2024
1 parent 55dae45 commit 754535d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/funny-carrots-rush.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@tinloof/sanity-studio": patch
---

fix skeleton list items error as all keys undefined
Original file line number Diff line number Diff line change
Expand Up @@ -466,8 +466,8 @@ const SkeletonListItems = ({ items }: { items: number }) => {
return (
<Card padding={1}>
<ListWrapper>
{[...Array(items)].map((key) => (
<div role="listitem" aria-label="Loading item" key={key}>
{[...Array(items)].map((_value, index) => (
<div role="listitem" aria-label="Loading item" key={index}>
<Flex align="center" gap={3} padding={1}>
<SkeletonIcon currentScheme={scheme} />
<TextContainer>
Expand Down

0 comments on commit 754535d

Please sign in to comment.