Skip to content

Commit 451360d

Browse files
authored
Merge pull request #278 from umbraco/bugfix/15.x/algolia-content-type-compositions
Fix compositions for content types and version update
2 parents ed3e66e + 346b731 commit 451360d

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
@@ -55,7 +55,7 @@ private List<ContentTypeDto> GetContentTypes(int? id = null)
5555
foreach (var contentType in contentTypes)
5656
{
5757
var properties = new List<ContentTypePropertyDto>();
58-
foreach (var propertyGroup in contentType.PropertyGroups)
58+
foreach (var propertyGroup in contentType.CompositionPropertyGroups)
5959
{
6060
if (propertyGroup.PropertyTypes is null)
6161
{

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
@@ -121,6 +121,7 @@ export class AlgoliaDashboardOverviewElement extends UmbElementMixin(LitElement)
121121
<uui-table-cell>${index.name}</uui-table-cell>
122122
<uui-table-cell>
123123
${index.contentData.map((contentData) => {
124+
if (!contentData.properties) return;
124125
return html`
125126
<uui-ref-node name=${contentData.name}
126127
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
@@ -13,7 +13,7 @@
1313
<PackageIconUrl></PackageIconUrl>
1414
<PackageProjectUrl>https://github.com/umbraco/Umbraco.Cms.Integrations/tree/main/src/Umbraco.Cms.Integrations.Search.Algolia</PackageProjectUrl>
1515
<RepositoryUrl>https://github.com/umbraco/Umbraco.Cms.Integrations</RepositoryUrl>
16-
<Version>4.0.0</Version>
16+
<Version>4.0.1</Version>
1717
<Authors>Umbraco HQ</Authors>
1818
<Company>Umbraco</Company>
1919
<PackageTags>Umbraco;Umbraco-Marketplace</PackageTags>

0 commit comments

Comments
 (0)