Skip to content

Commit

Permalink
chore: fix api preview indentation (#6152)
Browse files Browse the repository at this point in the history
  • Loading branch information
JessChowdhury authored May 14, 2024
1 parent d02b1fb commit ad38011
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/payload/src/admin/components/views/API/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ const RecursivelyRenderObjectData = ({
const objectKeys = Object.keys(object)
const objectLength = objectKeys.length
const [isOpen, setIsOpen] = React.useState<boolean>(true)

const isNestedAndEmpty = isEmpty && (parentType === 'object' || parentType === 'array')
return (
<li>
<li className={isNestedAndEmpty ? `${baseClass}__row-line--nested` : ''}>
<button
aria-label="toggle"
className={`${baseClass}__list-toggle ${isEmpty ? `${baseClass}__list-toggle--empty` : ''}`}
Expand Down

0 comments on commit ad38011

Please sign in to comment.