This commit is contained in:
Niels Lyngsø
2023-04-18 15:34:44 +02:00
parent e1745685c0
commit 65db67f530
2 changed files with 0 additions and 3 deletions

View File

@@ -688,8 +688,6 @@ export class UmbSorterController<T> implements UmbControllerInterface {
const movingItemIndex = this.#model.indexOf(movingItem);
console.log('this.#model', this.#model, movingItemIndex);
if (movingItemIndex !== -1 && movingItemIndex <= movingItemIndex) {
newIndex--;
}

View File

@@ -30,7 +30,6 @@ export class UmbDocumentTypeWorkspaceViewEditPropertiesElement extends UmbLitEle
performItemInsert: (args) => {
let sortOrder = 0;
if (this._propertyStructure.length > 0) {
console.log('args.newIndex', args.newIndex);
if (args.newIndex === 0) {
// TODO: Remove 'as any' when sortOrder is added to the model:
sortOrder = ((this._propertyStructure[0] as any).sortOrder ?? 0) - 1;