mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 11:36:24 +00:00
bug fix for "owner" rendering
This commit is contained in:
parent
cbb668687e
commit
961a35d410
1 changed files with 2 additions and 2 deletions
|
|
@ -443,8 +443,8 @@ class APIFormField {
|
||||||
) : null,
|
) : null,
|
||||||
);
|
);
|
||||||
case "owner":
|
case "owner":
|
||||||
String name = (item["name"] ?? "") as String;
|
String name = (data["name"] ?? "") as String;
|
||||||
bool isGroup = (item["label"] ?? "") == "group";
|
bool isGroup = (data["label"] ?? "") == "group";
|
||||||
return ListTile(
|
return ListTile(
|
||||||
title: Text(name),
|
title: Text(name),
|
||||||
leading: FaIcon(isGroup ? FontAwesomeIcons.users : FontAwesomeIcons.user),
|
leading: FaIcon(isGroup ? FontAwesomeIcons.users : FontAwesomeIcons.user),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue