From 39ca605fbd31a9ba352bbc6ec4d29980728227f8 Mon Sep 17 00:00:00 2001 From: Venessa Kuchenik Date: Tue, 5 Aug 2025 15:19:46 -0700 Subject: [PATCH] add removal of widgets in widgetArray --- client/src/components/Canvas/views/Home.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/components/Canvas/views/Home.jsx b/client/src/components/Canvas/views/Home.jsx index 68558f2..9e9c313 100644 --- a/client/src/components/Canvas/views/Home.jsx +++ b/client/src/components/Canvas/views/Home.jsx @@ -67,7 +67,7 @@ export default function Home({...props}) { const DeleteWidget = (ID) => { console.log("Deleting widget with id: ", ID); setLayout(layout => layout.filter(w => w.i !== ID)); - // add removal for widgetArray here + setWidgetArray(widgetArray => widgetArray.filter(w => w.i !== ID)); } const DeleteAll = () => {