Skip to content

Commit

Permalink
fix: add nullcheck on sourcefilter in sourceprovider
Browse files Browse the repository at this point in the history
  • Loading branch information
SondreJDigdir committed Sep 16, 2024
1 parent 2e038f3 commit 18ad3d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Dan.Plugin.Tilda/Utils/TildaSourceProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public IEnumerable<TildaDataSource> GetAllSources<T>() where T : ITildaEvidenceT
public IEnumerable<TildaDataSource> GetRelevantSources<T>(string sourceFilter) where T : ITildaEvidenceType
{
return GetAllSources<T>()
.Where(t => sourceFilter.Contains(t.OrganizationNumber))
.Where(t => sourceFilter is null || sourceFilter.Contains(t.OrganizationNumber))
.ToList();
}

Expand Down

0 comments on commit 18ad3d4

Please sign in to comment.