fix: update l1Category method to return 'Övrigt' for empty categoryPath
Test Suite / test (24.15.0) (push) Has been cancelled
Test Suite / test (24.15.0) (push) Has been cancelled
This commit is contained in:
@@ -38,7 +38,7 @@ class InventoryItem {
|
||||
|
||||
String get l1Category {
|
||||
final path = categoryPath?.trim();
|
||||
if (path == null || path.isEmpty) return 'Ovrigt';
|
||||
if (path == null || path.isEmpty) return 'Övrigt';
|
||||
return path.split('>').first.trim();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user