fix: update l1Category method to return 'Övrigt' for empty categoryPath
Test Suite / test (24.15.0) (push) Has been cancelled

This commit is contained in:
Nils-Johan Gynther
2026-05-07 07:56:49 +02:00
parent 7f7e4c24a8
commit a19bc1279a
2 changed files with 730 additions and 1 deletions
@@ -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();
}