diff --git a/lib/features/attachments/models/attachment_model.dart b/lib/features/attachments/models/attachment_model.dart index 3bfcb3c..1ce6055 100644 --- a/lib/features/attachments/models/attachment_model.dart +++ b/lib/features/attachments/models/attachment_model.dart @@ -189,7 +189,7 @@ class AttachmentModel extends Equatable { 'company_id': companyId, 'thumbnail_path': thumbnailPath, 'cropped_storage_path': croppedStoragePath, - 'view_mode': viewMode?.value, + 'view_mode': (viewMode ?? AttachmentViewMode.original).value, }; } } diff --git a/pubspec.yaml b/pubspec.yaml index 66546f1..029a5b0 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: flux description: "Gestione attività negozio di telefonia" publish_to: 'none' -version: 2.5.1+85 +version: 2.5.2+86 environment: sdk: ^3.11.3