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

Details View as described in Chapter 10 does not refresh after Edits #6

Open
0xeneye opened this issue Feb 8, 2023 · 2 comments
Open

Comments

@0xeneye
Copy link

0xeneye commented Feb 8, 2023

Here is what I do to duplicate the issue.
1.) From http://localhost:5000/admin/products , select Edit on a product. Make any valid edit.
2.) Save
3) Now that you are back in the admin/products page, select Details button for the same product.

Result : Edits in made in Step 1 do not appear.
Note : Upon refresh of the page, Edits made in Step 1 do appear.

@0xeneye
Copy link
Author

0xeneye commented Feb 8, 2023

I found a solution. In Editor.razor I changed this line in SaveProduct() from
NavManager?.NavigateTo("/admin/products");
to
NavManager?.NavigateTo("/admin/products", true);

@drdexter33
Copy link

I found a solution. In Editor.razor I changed this line in SaveProduct() from NavManager?.NavigateTo("/admin/products"); to NavManager?.NavigateTo("/admin/products", true);

Thanks for this one @0xeneye

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

No branches or pull requests

2 participants