Remove deduplication logic for remote photos
This commit is contained in:
parent
bd049d00dd
commit
9e599af31e
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ class _GalleryState extends State<Gallery> {
|
|||
void _deduplicatePhotos() {
|
||||
for (int index = 1; index < _photos.length; index++) {
|
||||
final current = _photos[index], previous = _photos[index - 1];
|
||||
if (current.localId == previous.localId) {
|
||||
if (current.localId != null && current.localId == previous.localId) {
|
||||
_photos.removeAt(index);
|
||||
index--;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue