Skip to content

Commit

Permalink
fix upload folders
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagocarvalhodev committed Apr 16, 2024
1 parent 395c246 commit b2727ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/blocs/upload/models/web_folder.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class WebFolder {

String id;
late String parentFolderId;
late String path;

WebFolder({
required this.name,
required this.id,
Expand Down
6 changes: 2 additions & 4 deletions lib/blocs/upload/upload_cubit.dart
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,6 @@ class UploadCubit extends Cubit<UploadState> {
UploadFolder(
lastModifiedDate: DateTime.now(),
name: folder.name,
path: folder.path,
),
));
}
Expand Down Expand Up @@ -1022,7 +1021,6 @@ class UploadCubit extends Cubit<UploadState> {
class UploadFolder extends IOFolder {
UploadFolder({
required this.name,
required this.path,
required this.lastModifiedDate,
});

Expand All @@ -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<Object?> get props => [name, path, lastModifiedDate];
Expand Down

0 comments on commit b2727ca

Please sign in to comment.