From d81090c45ee0e6fe5dfbb660d1513eda4b698e10 Mon Sep 17 00:00:00 2001 From: Max Ehrlicher-Schmidt Date: Mon, 23 Nov 2020 10:16:48 +0100 Subject: [PATCH] Fix bug --- src/app/pages/tables/bikes/bikes.component.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/app/pages/tables/bikes/bikes.component.ts b/src/app/pages/tables/bikes/bikes.component.ts index 69ec109..b0bbf47 100644 --- a/src/app/pages/tables/bikes/bikes.component.ts +++ b/src/app/pages/tables/bikes/bikes.component.ts @@ -198,6 +198,11 @@ export class BikesComponent { tempDataSource.push(oldRow); } } + for (const oldRow of this.data.data) { + if (oldRow.newObject) { + tempDataSource.unshift(oldRow); + } + } this.data.data = tempDataSource; }); this.bikesService.loadBikes();