gray-mueller / gray-mueller/food-ordering-app-using-python

Newly Added Category Doesn’t Appear in Dropdown Until Page Refresh – Product Page (Admin Panel)

Open
#1,018 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
4
Forks
3
PR merge metrics
No merged PRs in 30d

Description

Describe the bug
On the Product page in the admin panel, when a new category is added using the dropdown interface, it is not immediately reflected in the dropdown list. The newly created category only becomes visible after manually refreshing the browser.

To Reproduce
Steps to reproduce the behavior:

Go to the Product page in the admin panel
Use the category dropdown to add a new category
Attempt to select the newly added category from the dropdown
Observe that it does not appear until you refresh the page
Expected behavior
The dropdown should automatically update and include the newly added category immediately without requiring a page refresh.

**
Screenshot

Recording 2025-06-24 113631.zip

**
Attach if available.

Desktop (please complete the following information):

OS: Windows 11

Browser: Chrome

Version: 123.0.6312.86

Additional context
This is likely due to missing state updates or failure to re-fetch category data after creation. A real-time update or dynamic refresh of the dropdown options would significantly improve workflow efficiency for admins.

Activity

har33m
added
bug
Something isn't working

good first issue
Good for newcomers

Enatega Multivendor Admin Dashboard
3 days ago

AsadH123
assigned
ZeeshanRafiq38
3 days ago

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.