Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-pratik-k committed Jan 8, 2025
1 parent 2f42437 commit 2610407
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,9 @@ class AlbumMediaListStateNotifier extends StateNotifier<AlbumMediaListState> {
if (state.album.source == AppMediaSource.local) {
await _localMediaService.updateAlbum(
state.album.copyWith(
medias: append ? [...state.album.medias, ...medias] : medias,
medias: (append ? [...state.album.medias, ...medias] : medias)
.toSet()
.toList(),
),
);
} else if (state.album.source == AppMediaSource.googleDrive) {
Expand Down
2 changes: 1 addition & 1 deletion data/lib/domain/config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ class LocalDatabaseConstants {
}

class FeatureFlag {
static final googleDriveSupport = true;
static final googleDriveSupport = false;
}

0 comments on commit 2610407

Please sign in to comment.