Skip to content

Commit

Permalink
remove empty code|name fields from class export
Browse files Browse the repository at this point in the history
  • Loading branch information
baumths committed Sep 23, 2024
1 parent f7dcb12 commit b30fa5a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/features/backup/backup_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ abstract class BackupService {
<String, Object?>{
'id': clazz.id,
if (clazz.parentId != Classe.rootId) 'parentId': clazz.parentId,
'code': clazz.code,
'name': clazz.name,
if (clazz.code.isNotEmpty) 'code': clazz.code,
if (clazz.name.isNotEmpty) 'name': clazz.name,
if (clazz.metadata.isNotEmpty) 'metadata': clazz.metadata,
}
],
Expand Down

0 comments on commit b30fa5a

Please sign in to comment.