Closed agalin920 closed 2 months ago
Seems like the issue happens when after creating a new content item and before the user gets redirected to the new content item dispatch(generateItem(modelZUID))
is being triggered again. I've noticed that prior to the redirection, the fields get cleared out while still on the create item page which causes the generateItem function to be re-triggered since that function lives inside a use effect that checks if the item is empty on page load.
Steps to reproduce the behavior:
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context Add any other context about the problem here.