Skip to content

Commit c6720cd

Browse files
authored
🐛 Allows assets changing when no path previously (#656)
Resolves fluttercandies/flutter_photo_manager#1215
1 parent 4d2de12 commit c6720cd

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ that can be found in the LICENSE file. -->
99
1010
## Unreleased
1111

12-
*None.*
12+
### Fixes
13+
14+
- Allows assets changing when no path previously.
1315

1416
## 9.3.3
1517

lib/src/delegates/asset_picker_builder_delegate.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,7 @@ class DefaultAssetPickerBuilderDelegate
901901
if (assetsChangeRefreshPredicate != null) {
902902
return assetsChangeRefreshPredicate!(permission, call, path);
903903
}
904-
return path?.isAll == true;
904+
return path?.isAll ?? true;
905905
}
906906

907907
if (!predicate()) {

0 commit comments

Comments
 (0)