Skip to content

Commit

Permalink
Merge branch 'develop' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronSadlerUK committed Jul 14, 2022
2 parents 5aaa2b0 + d908504 commit c478665
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 10 deletions.
4 changes: 0 additions & 4 deletions src/UmbNav.Api/Controllers/API/UmbNavEntityApiController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ public UmbNavEntityApiController(IContentService contentService, IPublishedSnaps

public IActionResult GetById(string id, string? culture = null)
{
if (culture == "undefined")
{
culture = null;
}
var isUdi = UdiParser.TryParse(id, out var udi);

if (isUdi && udi != null)
Expand Down
4 changes: 2 additions & 2 deletions src/UmbNav.Api/UmbNav.Api.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
<Copyright>2022 UmbHost Limited</Copyright>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<AssemblyVersion>2.0.1</AssemblyVersion>
<AssemblyVersion>2.0.2</AssemblyVersion>
<Version>$(AssemblyVersion)</Version>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageReleaseNotes>Fixes an issue with the link description showing as a '#' in the backoffice</PackageReleaseNotes>
<PackageReleaseNotes>Fixed issue with null culture</PackageReleaseNotes>
<Nullable>enable</Nullable>
</PropertyGroup>

Expand Down
6 changes: 3 additions & 3 deletions src/UmbNav.Web/UmbNav.Web.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
<Copyright>2022 UmbHost Limited</Copyright>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<AssemblyVersion>2.0.1</AssemblyVersion>
<AssemblyVersion>2.0.2</AssemblyVersion>
<Version>$(AssemblyVersion)</Version>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageReleaseNotes>Bumps minimum dependency version for Our.UmbNav.Api to 2.0.1</PackageReleaseNotes>
<PackageReleaseNotes>Fixed issue with null culture</PackageReleaseNotes>
</PropertyGroup>


Expand All @@ -31,7 +31,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="6.0.6" />
<PackageReference Include="Our.Umbraco.UmbNav.Api" Version="2.0.1" />
<PackageReference Include="Our.Umbraco.UmbNav.Api" Version="2.0.2" />
<PackageReference Include="Our.Umbraco.UmbNav.Core" Version="2.0.0" />
<PackageReference Include="Umbraco.Cms.Core" Version="10.0.0" />
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/UmbNav.Web/wwwroot/js/umbnav.resource.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
angular.module("umbraco.resources").factory("umbnavResource", function ($http, iconHelper) {
return {
getById: function (id, culture) {
getById: function (id, culture = "") {

return $http.get("backoffice/UmbNav/UmbNavEntityApi/GetById?id=" + id + "&culture=" + culture)
.then(function (response) {
Expand Down

0 comments on commit c478665

Please sign in to comment.