From 554ce0e0e89d23a9bc6708b528ac28997342a127 Mon Sep 17 00:00:00 2001 From: Steve Morgan Date: Thu, 7 Nov 2024 18:06:52 +0000 Subject: [PATCH] Bugfix: creating new doc type properties sort order doesn't count existing properties - puts it at top (+1) (#2523) Bug 17457 https://github.com/umbraco/Umbraco-CMS/issues/17457 Creating new doc type properties sort order doesn't count existing properties. Looking at this it seems that the hardwork is done to workout the sort order and assign it to preset but it's not returned undefined was (probably as a dev placeholder that's gone unnoticed!). --- .../design/content-type-design-editor-properties.element.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/packages/core/content-type/workspace/views/design/content-type-design-editor-properties.element.ts b/src/packages/core/content-type/workspace/views/design/content-type-design-editor-properties.element.ts index e85a4f7d5b..932df6aad2 100644 --- a/src/packages/core/content-type/workspace/views/design/content-type-design-editor-properties.element.ts +++ b/src/packages/core/content-type/workspace/views/design/content-type-design-editor-properties.element.ts @@ -193,7 +193,7 @@ export class UmbContentTypeDesignEditorPropertiesElement extends UmbLitElement { } preset.sortOrder = sortOrderInt; } - return { data: { contentTypeUnique: this._ownerContentTypeUnique, preset: undefined } }; + return { data: { contentTypeUnique: this._ownerContentTypeUnique, preset: preset } }; }) .observeRouteBuilder((routeBuilder) => { this._newPropertyPath =