Skip to content
This repository has been archived by the owner on Oct 29, 2024. It is now read-only.

Page goes blank when we try to edit any product in admin/productlist page after editing one of the product before #86

Closed
s-vamshi opened this issue Oct 8, 2022 · 5 comments
Labels
bug Something isn't working hacktoberfest hacktoberfest

Comments

@s-vamshi
Copy link
Contributor

s-vamshi commented Oct 8, 2022

Describe the bug
when we are in admin/productlist route, when we click on edit button and update a product then we will get again redirected to admin/productlist. Here starts the problem now when we want to edit any other product we will get an error Uncaught TypeError: Cannot read properties of undefined (reading 'name') at ProductEditScreen.js:47:1

To Reproduce
Steps to reproduce the behavior:

  1. Go to admin/productlist
  2. Click on edit button for one product
  3. Edit details of that product
  4. Click update button
  5. It will get redirect again to admin/productlist
  6. Now try to edit any product it will show a blank page
  7. And if we open console we get this message Uncaught TypeError: Cannot read properties of undefined (reading 'name') at ProductEditScreen.js:47:1

Expected behavior
We should see an edit page of that particular product.

Screenshots
tem15

@roopeshsn roopeshsn added bug Something isn't working hacktoberfest hacktoberfest labels Oct 8, 2022
@sameersecond
Copy link
Contributor

Hi,
Can I work on this issue

@roopeshsn
Copy link
Owner

But you don't have any contribution or commit to your own repos before.

@roopeshsn roopeshsn changed the title Page goes blank when we try to edit any product in admin/productlist page after editing one of the product once Page goes blank when we try to edit any product in admin/productlist page after editing one of the product before Oct 8, 2022
@SurajKD
Copy link

SurajKD commented Oct 8, 2022

i can fix it

@roopeshsn
Copy link
Owner

Hi @SurajKD You can work on this. If you found the bug mention it precisely in your PR.

@sameersecond
Copy link
Contributor

Hi @roopeshsn. Sorry I don't have any commits on this account. I have found the source of the bug and fixed it. Do you want me to create the PR or should I work on some other bug

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working hacktoberfest hacktoberfest
Projects
None yet
Development

No branches or pull requests

4 participants