Skip to content

Commit

Permalink
chore: Follow up file selector
Browse files Browse the repository at this point in the history
  • Loading branch information
krille-chan committed Oct 4, 2024
1 parent fe06f2e commit cc928c6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/utils/file_selector.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ Future<List<XFile>> selectFiles(
compressionQuality: 0,
allowMultiple: allowMultiple,
type: type.filePickerType,
allowedExtensions: type.extensions?.toList(),
allowedExtensions: type.filePickerType == FileType.custom
? type.extensions?.toList()
: null,
),
);
return result?.xFiles ?? [];
Expand Down

0 comments on commit cc928c6

Please sign in to comment.