From 89c29f9efd0cf1ecb07c22578494984012f25192 Mon Sep 17 00:00:00 2001 From: Niels de Jong Date: Wed, 28 Feb 2024 13:37:54 +0100 Subject: [PATCH] Removed unneeded dashboard fetch for access control --- src/dashboard/sidebar/DashboardSidebar.tsx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/dashboard/sidebar/DashboardSidebar.tsx b/src/dashboard/sidebar/DashboardSidebar.tsx index f88837645..50e6f25e4 100644 --- a/src/dashboard/sidebar/DashboardSidebar.tsx +++ b/src/dashboard/sidebar/DashboardSidebar.tsx @@ -350,10 +350,6 @@ export const NeoDashboardSidebar = ({ }} handleAccessClicked={() => { setMenuOpen(Menu.NONE); - const d = dashboards[inspectedIndex]; - loadDashboardFromNeo4j(driver, dashboardDatabase, d.uuid, (text) => { - setCachedDashboard(JSON.parse(text)); - }); setModalOpen(Modal.ACCESS); }} handleDeleteClicked={() => {