diff --git a/frontend/src/app/projects/models/service/model.service.ts b/frontend/src/app/projects/models/service/model.service.ts index 6a091cf066..a1491769df 100644 --- a/frontend/src/app/projects/models/service/model.service.ts +++ b/frontend/src/app/projects/models/service/model.service.ts @@ -92,7 +92,7 @@ export class ModelService { ); } - private patchModel( + private applyModelPatch( projectSlug: string, modelSlug: string, patchData: PatchModel, @@ -108,7 +108,7 @@ export class ModelService { modelSlug: string, patchModel: PatchModel, ): Observable { - return this.patchModel(projectSlug, modelSlug, patchModel).pipe( + return this.applyModelPatch(projectSlug, modelSlug, patchModel).pipe( tap({ next: (model) => { this.loadModels(projectSlug); @@ -123,7 +123,7 @@ export class ModelService { modelUpdates: { modelSlug: string; patchModel: PatchModel }[], ): Observable { const updateObservables = modelUpdates.map(({ modelSlug, patchModel }) => - this.patchModel(projectSlug, modelSlug, patchModel), + this.applyModelPatch(projectSlug, modelSlug, patchModel), ); return forkJoin(updateObservables).pipe( diff --git a/frontend/src/app/projects/project-detail/model-overview/reorder-models-dialog/reorder-models-dialog.component.html b/frontend/src/app/projects/project-detail/model-overview/reorder-models-dialog/reorder-models-dialog.component.html index 31ea27d97f..9ebe1ba3e1 100644 --- a/frontend/src/app/projects/project-detail/model-overview/reorder-models-dialog/reorder-models-dialog.component.html +++ b/frontend/src/app/projects/project-detail/model-overview/reorder-models-dialog/reorder-models-dialog.component.html @@ -17,7 +17,7 @@

Reorder models

(cdkDropListDropped)="drop($event)" class="my-[15px] rounded border border-solid" > - @for (model of data.models; track model.name) { + @for (model of data.models; track model.id) {
reorder