From 2d4eef864967a1de4915a4abea2c1168cd1c1425 Mon Sep 17 00:00:00 2001 From: Aleksandar Zivkovic Date: Tue, 27 Feb 2024 19:00:21 +0100 Subject: [PATCH] fix duplicate grid columns Signed-off-by: Aleksandar Zivkovic --- .../java/com/samic/samic/views/dashboard/DashboardView.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/main/java/com/samic/samic/views/dashboard/DashboardView.java b/src/main/java/com/samic/samic/views/dashboard/DashboardView.java index c27cce0..35e54ad 100644 --- a/src/main/java/com/samic/samic/views/dashboard/DashboardView.java +++ b/src/main/java/com/samic/samic/views/dashboard/DashboardView.java @@ -17,7 +17,6 @@ import com.samic.samic.data.entity.StorageObject; import com.samic.samic.data.entity.Supply; import com.samic.samic.data.entity.User; -import com.samic.samic.data.foundation.Guard; import com.samic.samic.security.AuthenticatedUser; import com.samic.samic.services.ServiceObjectType; import com.samic.samic.services.ServiceProducer; @@ -327,10 +326,6 @@ private void initHardware() { hardwareGrid.setMaxHeight("300px"); hardwareGrid.getStyle().setBorder("0px"); - hardwareGrid.addColumn(StorageObject::getId).setHeader("Lager ID").setAutoWidth(true); - hardwareGrid.addColumn(so -> - Guard.isNotNull.test(so.getObjectTypeName()) ? so.getObjectTypeName().getName() : "") - .setHeader("Gerätetyp Name").setAutoWidth(true); initHardwareData(); // MY_HARDWARE - PUT UI TOGETHER add(UIFactory.rootComponentContainer("Meine Hardware", hardwareGrid));