refactor: streamline alias editing and improve category path handling in admin panel
This commit is contained in:
@@ -76,9 +76,10 @@ List<ProductOption> toProductOptions(List<AdminProduct> products) {
|
||||
}
|
||||
|
||||
Widget buildCategoryPathChip(String? categoryPath, {double maxWidth = 220}) {
|
||||
final value = (categoryPath == null || categoryPath.trim().isEmpty)
|
||||
? 'okänd'
|
||||
: categoryPath.trim();
|
||||
if (categoryPath == null || categoryPath.trim().isEmpty) {
|
||||
return const SizedBox.shrink();
|
||||
}
|
||||
final value = categoryPath.trim();
|
||||
return Tooltip(
|
||||
message: value,
|
||||
child: Chip(
|
||||
|
||||
Reference in New Issue
Block a user