Skip to content

Commit

Permalink
Bugfix: creating new doc type properties sort order doesn't count exi…
Browse files Browse the repository at this point in the history
…sting properties - puts it at top (+1) (#2523)

Bug 17457

umbraco/Umbraco-CMS#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!).
  • Loading branch information
cheeseytoastie authored Nov 7, 2024
1 parent f5099a3 commit 554ce0e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down

0 comments on commit 554ce0e

Please sign in to comment.