Ghost/apps/admin-x-design-system
Steve Larson 6840c3a6b3
🐛 Fixed admin crashing when deleting a tier benefit that was last moved (#20628)
ref https://linear.app/tryghost/issue/ENG-1433/
- in the tiers details modal, if a tier was deleted after being moved it
would crash admin

The SortableList component calls renderItem for the drag overlay on the
dragged item. However, if that item was deleted, the draggingId never
got reset causing the drag overlay to try to call renderItem on a
nonexistent item.

As a note, we don't actually use this overlay... it could be best to
strip it out to prevent causing issues.
2024-07-18 17:18:32 +00:00
..
.storybook
src 🐛 Fixed admin crashing when deleting a tier benefit that was last moved (#20628) 2024-07-18 17:18:32 +00:00
test Added test for hooks - useSortableIndexedList, usePagination (admin-x-design-system) 2024-07-11 14:02:55 +05:30
.eslintrc.cjs
.gitignore
package.json Added test for hooks - useSortableIndexedList, usePagination (admin-x-design-system) 2024-07-11 14:02:55 +05:30
postcss.config.cjs
preflight.css
README.md
styles.css
tailwind.cjs
tailwind.config.cjs Updated email newsletter spacing and font sizes (#20273) 2024-05-28 14:29:49 +00:00
tsconfig.declaration.json
tsconfig.json
tsconfig.node.json
vite.config.ts

Admin X Design

Components, design guidelines and documentation for building apps in Ghost Admin

Usage

Develop

This is a monorepo package.

Follow the instructions for the top-level repo.

  1. git clone this repo & cd into it as usual
  2. Run yarn to install top-level dependencies.

Test

  • yarn lint run just eslint
  • yarn test run lint and tests