Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deleting products leaves orphan entries in inventory #5719

Closed
GenuineGuineapig opened this issue Nov 26, 2023 · 1 comment · Fixed by #5727
Closed

Deleting products leaves orphan entries in inventory #5719

GenuineGuineapig opened this issue Nov 26, 2023 · 1 comment · Fixed by #5727

Comments

@GenuineGuineapig
Copy link

Bug report

Describe the bug

When I delete a product on medusa 1.18 with the enabled inventory plugin, it leaves orphaned objects in the inventory tab which can't be deleted.

System information

Medusa version (including plugins): v1.18.0
Node.js version: 20.10.0
Database: Postgres
Operating system: ubuntu server
Browser (if relevant):

Steps to reproduce the behavior

  1. Add product, set "manage inventory" to true, add certain amount
  2. Publish
  3. Delete
  4. Check inventory tab, a product with no image or name is shown with inventory

Expected behavior

The inventory is also deleted/can be deleted

Screenshots

Bildschirmfoto 2023-11-23 um 21 18 49
@GenuineGuineapig
Copy link
Author

Wow, thanks guys! That's one quick response (and fix). 🥇 :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants