diff --git a/avni-server-api/src/main/java/org/avni/server/service/DashboardService.java b/avni-server-api/src/main/java/org/avni/server/service/DashboardService.java index f8344ccbf..cd4ee8e32 100644 --- a/avni-server-api/src/main/java/org/avni/server/service/DashboardService.java +++ b/avni-server-api/src/main/java/org/avni/server/service/DashboardService.java @@ -4,6 +4,7 @@ import org.avni.server.domain.*; import org.avni.server.domain.app.dashboard.DashboardFilter; import org.avni.server.util.BadRequestError; +import org.avni.server.util.ReactAdminUtil; import org.avni.server.web.contract.reports.DashboardBundleContract; import org.avni.server.web.contract.reports.DashboardSectionBundleContract; import org.avni.server.web.contract.reports.DashboardSectionCardMappingBundleContract; @@ -93,6 +94,7 @@ public Dashboard editDashboard(DashboardWebRequest dashboardRequest, Long dashbo public void deleteDashboard(Dashboard dashboard) { dashboard.setVoided(true); + dashboard.setName((ReactAdminUtil.getVoidedName(dashboard.getName(), dashboard.getId()))); dashboardRepository.save(dashboard); }