diff --git a/lib/blocs/upload/models/web_folder.dart b/lib/blocs/upload/models/web_folder.dart index 2234b1fb41..f1b00c63f8 100644 --- a/lib/blocs/upload/models/web_folder.dart +++ b/lib/blocs/upload/models/web_folder.dart @@ -4,7 +4,7 @@ class WebFolder { String id; late String parentFolderId; - late String path; + WebFolder({ required this.name, required this.id, diff --git a/lib/blocs/upload/upload_cubit.dart b/lib/blocs/upload/upload_cubit.dart index 42cc2454c5..ba56b66764 100644 --- a/lib/blocs/upload/upload_cubit.dart +++ b/lib/blocs/upload/upload_cubit.dart @@ -565,7 +565,6 @@ class UploadCubit extends Cubit { UploadFolder( lastModifiedDate: DateTime.now(), name: folder.name, - path: folder.path, ), )); } @@ -1022,7 +1021,6 @@ class UploadCubit extends Cubit { class UploadFolder extends IOFolder { UploadFolder({ required this.name, - required this.path, required this.lastModifiedDate, }); @@ -1048,8 +1046,8 @@ class UploadFolder extends IOFolder { final String name; @override - // TODO: implement path - final String path; + // We dont need to use the path for the upload + final String path = ''; @override List get props => [name, path, lastModifiedDate];