Skip to content

Commit

Permalink
Fix selecting when reached the max asset limit in the preview (#648)
Browse files Browse the repository at this point in the history
Fixes #607

---------

Co-authored-by: Alex Li <[email protected]>
  • Loading branch information
JamieYee and AlexV525 authored Nov 21, 2024
1 parent 29c2b8a commit dc5911e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ abstract class AssetPickerViewerBuilderDelegate<Asset, Path> {
}

void selectAsset(Asset entity) {
if (maxAssets != null && selectedCount >= maxAssets!) {
if (maxAssets != null && selectedCount > maxAssets!) {
return;
}
provider?.selectAsset(entity);
Expand Down

0 comments on commit dc5911e

Please sign in to comment.