diff --git a/src/Files.App/Utils/Storage/Search/FolderSearch.cs b/src/Files.App/Utils/Storage/Search/FolderSearch.cs index 82087b901a54..23432318648a 100644 --- a/src/Files.App/Utils/Storage/Search/FolderSearch.cs +++ b/src/Files.App/Utils/Storage/Search/FolderSearch.cs @@ -101,7 +101,7 @@ private async Task AddItemsForHomeAsync(IList results, CancellationT } else { - foreach (var drive in drivesViewModel.Drives.Cast().Where(x => !x.IsNetwork)) + foreach (var drive in drivesViewModel.Drives.ToList().Cast().Where(x => !x.IsNetwork)) { await AddItemsAsync(drive.Path, results, token); }