fix(oms-return-details): Label Unknown Fix

Ref: #5513
This commit is contained in:
Nino
2025-12-02 17:20:56 +01:00
parent 5f94549539
commit aa57d27924

View File

@@ -91,7 +91,9 @@ export class ReturnDetailsOrderGroupItemControlsComponent {
dropdownLabel = computed(() => {
const category = this.productCategory();
return category ?? 'Produktart';
return !!category && category !== ProductCategory.Unknown
? category
: 'Produktart';
});
setProductCategory(category: ProductCategory | undefined) {