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

Fix: "Reload" Button in Admin Scopes Not Functioning Correctly (#1329) #855

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

AqeelMuhammad
Copy link

Purpose

Goal

  • To ensure that the "Reload" button in the Admin scopes page restores the original data and clears the search input when clicked.

Approach

  • Introduced a new state variable searchText to keep track of the search input value.
  • Created a fetchData function to centralize data fetching logic and reset the search input.
  • Updated the useEffect hook to use the fetchData function.
  • Modified the onSearch function to update the searchText state.
  • Updated the ListAddOns component to accept a searchValue prop and set it as the value of the search input field.

Copy link

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

Successfully merging this pull request may close these issues.

"Reload" button in Admin scopes not functioning
1 participant