-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Labels
Description
Which component is this issue related to?
Umbraco Commerce (Core)
Which Umbraco Commerce version are you using? (Please write the exact version, example: 10.1.0)
15.3.5
Bug summary
It seems that when you configure a Data Type for Stock or Price (maybe others) with a specific store selected. The PropertyEditor doesn't read the configured store correctly and fails to display if it can't get the store from the content hierarchy.
Specifics
From source map, line 70 of stock\property-editor-ui-stock.element.ts
const storeId = this.config?.find(p => p.alias === 'storeId')?.value;
It seems that this.config is not set at this point and instead the configuration should be read from the provided config argument to the method.
Steps to reproduce
- Create a DataType for either Stock or Price and configure it with a specific store via the configuration.
- Add DataType as property to a DocumentType.
- Create a Document of that type in the content tree that does not have a Store within the hierarchy
- See that the property editor does not render.
Expected result / actual result
Property editor should render correctly using configured store for context.
Dependencies
No response