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!).
This commit is contained in:
Steve Morgan
2024-11-07 18:06:52 +00:00
committed by GitHub
parent 0d85b56ec2
commit 62336e4e28

View File

@@ -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 =