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

[Admin UI, Multivendor Plugin] Error when loading Orders and Custom Fields in Product View when logging in as another user than the SuperAdmin #3316

Open
margamorais opened this issue Jan 13, 2025 · 1 comment
Labels
type: bug 🐛 Something isn't working

Comments

@margamorais
Copy link

margamorais commented Jan 13, 2025

Describe the bug
We have a Vendure setup using the Multivendor Plugin initially available in Github. We have done modifications to the plugin, however none of those seem to be the reason for this impact in the experience. This bug relates to two scenarios that are happening when I log in as a Seller, which would have the following permissions on it's own channel:

image

When logging in as this Seller's Administrator, if I enter the orders page, I get the following error:

image

If I then refresh the page the error disappears and I can then see the orders.

The second scenario happens when entering the Product Detail page. It doesn't log any error in the console, however when I enter the page of a product, or even when clicking the "Create New Product" button. The card with the additional fields doesn't show, only after refreshing the page can I see the additional fields card.

This behaviour only seems to happen when I enter for the first time in the session. However it's not very nice to have to tell the sellers that they have to refresh the page when this happens.

To Reproduce
Steps to reproduce the behavior:

  1. Create a Vendure setup and add the Multivendor Plugin
  2. Create a seller channel and administrator with the permissions mentioned above
  3. Enter the seller's administrator account
  4. Go to the orders page and see the error
  5. Go to the Products section and click the button "Create New Product"
  6. See that the additional fields are not there (Previously add custom fields to the product entity in the configuration)
  7. Refresh the page to see the additional fields card

Expected behavior
When a seller's administrator logs in, it should be able to go to the product's page and see the additional fields card without having to refresh the page. Furthermore, the administrator should be able to go the order's page and see the list of orders, without having to refresh the page.

Environment (please complete the following information):

  • @vendure/core version: 2.3.0
  • Nodejs version 22.11.0
  • Database (mysql/postgres etc): postgres
@margamorais margamorais added the type: bug 🐛 Something isn't working label Jan 13, 2025
@margamorais margamorais changed the title Error when loading Orders and Custom Fields in Product View when logging in as another user than the SuperAdmin [Admin UI, Multivendor Plugin] Error when loading Orders and Custom Fields in Product View when logging in as another user than the SuperAdmin Jan 13, 2025
@caiobuteri
Copy link

Hi @margamorais,

I’m not a Vendure expert, but I’ve been working with Vendure for the last 2 years. I have a Vendure setup using the Multi-vendor plugin as well. I tried to follow your steps to reproduce the same error, but I couldn’t replicate it.

image

Above is my Administrator's roles setup.

image

Here is the order list page when logged in as a seller administrator.

My @vendure/core version is 3.0.6. You might want to consider updating yours and trying again. 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants