marthaegrimaldi / marthaegrimaldi/restaurant-ordering-platform-with-source-code

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

Open
#67 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
0
Forks
0
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

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the Product page in the admin panel and reproduce the category-dropdown flow described in the issue. Trace category creation and the dropdown's option updates; done means the newly created category appears and can be selected immediately without a browser refresh.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.