clean up
This commit is contained in:
@@ -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--;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user