mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 15:17:31 +00:00
check type isNotEmpty
This commit is contained in:
@ -60,7 +60,7 @@ class _RoleDropdownState extends State<RoleDropdown> {
|
|||||||
return DropdownMenuItem<String>(
|
return DropdownMenuItem<String>(
|
||||||
value: role.uuid,
|
value: role.uuid,
|
||||||
child: Text(
|
child: Text(
|
||||||
' ${role.type[0].toUpperCase()}${role.type.substring(1)}',
|
' ${role.type.isNotEmpty ? role.type[0].toUpperCase() : ''}${role.type.substring(1)}',
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}).toList(),
|
}).toList(),
|
||||||
|
Reference in New Issue
Block a user