From 80854e4bf3cdee65546c95cb81f024e72ca8d585 Mon Sep 17 00:00:00 2001 From: "Daniel S. Hansen" Date: Tue, 29 Jul 2025 12:08:36 -0700 Subject: [PATCH] Remove garbage comments --- .../src/components/layout/Canvas/views/DashboardCanvas.jsx | 6 ++---- client/src/components/layout/Sidebar/Sidebar.jsx | 5 ++--- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/client/src/components/layout/Canvas/views/DashboardCanvas.jsx b/client/src/components/layout/Canvas/views/DashboardCanvas.jsx index 70386aa..25effed 100644 --- a/client/src/components/layout/Canvas/views/DashboardCanvas.jsx +++ b/client/src/components/layout/Canvas/views/DashboardCanvas.jsx @@ -83,11 +83,9 @@ export function DashboardCanvas({ view, setView, layout, setLayout, onLayoutChan /* HEADER */ setView(value)} - // onValueChange={(e) => setView(e.value)} + + // Prevent navigation away from 'My Dashboard' while in Edit mode onValueChange={(e) => { const nextView = e.value; diff --git a/client/src/components/layout/Sidebar/Sidebar.jsx b/client/src/components/layout/Sidebar/Sidebar.jsx index 3ff8794..f527395 100644 --- a/client/src/components/layout/Sidebar/Sidebar.jsx +++ b/client/src/components/layout/Sidebar/Sidebar.jsx @@ -70,10 +70,10 @@ export default function Sidebar({ view, onChangeView }) { const Icon = button.icon; const buttonElement = ( ); - // console.log("buttonElement is:", buttonElement) console.log("Returning:", !isOpen ? "Tooltip" : "Button", buttonElement); return !isOpen ? (