Skip to content

Commit

Permalink
Distinct GetBoardSources
Browse files Browse the repository at this point in the history
  • Loading branch information
MansourNazifiAsl committed Jun 13, 2024
1 parent c93fee5 commit 09e8b77
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion Controllers/Custom/BoardComponents.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Newtonsoft.Json;
using Olive;
Expand All @@ -13,7 +14,14 @@ partial class BoardComponents
public string GetBoardSources(string type)
{
if (BoardComponentSources.ContainsKey(type.ToLower()))
return BoardComponentSources[type.ToLower()].ToString(";");
{
var items = BoardComponentSources[type.ToLower()];
if (items != null)
{
return items.Distinct().ToString(";");
}
}

return "";
}

Expand Down
2 changes: 1 addition & 1 deletion Olive.Microservices.Hub.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<Authors>Geeks Ltd</Authors>
<RepositoryUrl>https://github.com/Geeksltd/Olive.Microservices.Hub/tree/master/Olive.Microservices.Hub</RepositoryUrl>
<PackageIcon>icon.png</PackageIcon>
<Version>1.5.44</Version>
<Version>1.5.45</Version>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
<GenerateTargetFrameworkAttribute>false</GenerateTargetFrameworkAttribute>
<Nullable>warnings</Nullable>
Expand Down

0 comments on commit 09e8b77

Please sign in to comment.