cleanup code

This commit is contained in:
tzw
2024-01-23 16:28:08 +06:30
parent a1e87cdbf6
commit f3f75a80c6
96 changed files with 232 additions and 439 deletions

View File

@@ -276,7 +276,7 @@ class _StaffEditorState extends State<StaffEditor> {
this.selectedUser = _user;
this.user = _user;
setState(() {
if (user.privileges != null) {
if (user.privileges.isNotEmpty) {
privileges.forEach((p) => user.privileges.contains(p.id)
? p.isChecked = true
: p.isChecked = false);