Skip to content

Commit c3e5222

Browse files
Fix: Handle null matchingItem in FileTagsWidgetViewModel (#17390)
Co-authored-by: seer-by-sentry[bot] <157164994+seer-by-sentry[bot]@users.noreply.github.com>
1 parent c7687ab commit c3e5222

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Files.App/ViewModels/UserControls/Widgets/FileTagsWidgetViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public async Task RefreshWidgetAsync()
6363
if (_updateCTS.IsCancellationRequested)
6464
break;
6565

66-
var matchingItem = Containers.First(c => c.Uid == item.Uid);
66+
var matchingItem = Containers.FirstOrDefault(c => c.Uid == item.Uid);
6767
if (matchingItem is null)
6868
{
6969
CreateTagContainerItem(item);

0 commit comments

Comments
 (0)