Skip to content

Commit 2963f9f

Browse files
committed
Fix compositions for content types and version update
1 parent b8941b4 commit 2963f9f

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/Umbraco.Cms.Integrations.Search.Algolia/Api/Management/Controllers/GetContentTypesController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ private List<ContentTypeDto> GetContentTypes(int? id = null)
5454
foreach (var contentType in contentTypes)
5555
{
5656
var properties = new List<ContentTypePropertyDto>();
57-
foreach (var propertyGroup in contentType.PropertyGroups)
57+
foreach (var propertyGroup in contentType.CompositionPropertyGroups)
5858
{
5959
if (propertyGroup.PropertyTypes is null)
6060
{

src/Umbraco.Cms.Integrations.Search.Algolia/Client/src/dashboard/search-management-dashboard/views/algolia-dashboard-overview.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ export class AlgoliaDashboardOverviewElement extends UmbElementMixin(LitElement)
127127
<uui-table-cell>${index.name}</uui-table-cell>
128128
<uui-table-cell>
129129
${index.contentData.map((contentData) => {
130+
if (!contentData.properties) return;
130131
return html`
131132
<uui-ref-node name=${contentData.name}
132133
detail=${contentData.properties.map(obj => obj.name).join(', ')}>

src/Umbraco.Cms.Integrations.Search.Algolia/Umbraco.Cms.Integrations.Search.Algolia.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<PackageIconUrl></PackageIconUrl>
1616
<PackageProjectUrl>https://github.com/umbraco/Umbraco.Cms.Integrations/tree/main/src/Umbraco.Cms.Integrations.Search.Algolia</PackageProjectUrl>
1717
<RepositoryUrl>https://github.com/umbraco/Umbraco.Cms.Integrations</RepositoryUrl>
18-
<Version>5.0.0</Version>
18+
<Version>5.0.1</Version>
1919
<Authors>Umbraco HQ</Authors>
2020
<Company>Umbraco</Company>
2121
<PackageTags>Umbraco;Umbraco-Marketplace</PackageTags>

0 commit comments

Comments
 (0)