Skip to content

Commit

Permalink
Update drive_detail_data_list.dart
Browse files Browse the repository at this point in the history
fix parse of thumbnail
  • Loading branch information
thiagocarvalhodev committed Jun 28, 2024
1 parent c367e36 commit 7adbbf9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pages/drive_detail/components/drive_detail_data_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ class DriveDataTableItemMapper {
index: 0,
pinnedDataOwnerAddress: fileEntry.pinnedDataOwnerAddress,
isHidden: fileEntry.isHidden,
thumbnail: fileEntry.thumbnail != null
thumbnail: fileEntry.thumbnail != null && fileEntry.thumbnail != 'null'
? Thumbnail.fromJson(jsonDecode(fileEntry.thumbnail!))
: null,
);
Expand Down Expand Up @@ -509,7 +509,7 @@ class DriveDataTableItemMapper {
index: 0,
pinnedDataOwnerAddress: revision.pinnedDataOwnerAddress,
isHidden: revision.isHidden,
thumbnail: revision.thumbnail != null
thumbnail: revision.thumbnail != null && revision.thumbnail != 'null'
? Thumbnail.fromJson(jsonDecode(revision.thumbnail!))
: null,
);
Expand Down

0 comments on commit 7adbbf9

Please sign in to comment.