From 8770bba3a0a0e46d0faea288f51e98caceb1b429 Mon Sep 17 00:00:00 2001 From: arpitnath Date: Tue, 3 Oct 2023 19:47:47 +0530 Subject: [PATCH] fixes: Not able to delete component from Inspector --- frontend/src/Editor/LeftSidebar/SidebarInspector.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/Editor/LeftSidebar/SidebarInspector.jsx b/frontend/src/Editor/LeftSidebar/SidebarInspector.jsx index 06335ff095..3fc7c63f95 100644 --- a/frontend/src/Editor/LeftSidebar/SidebarInspector.jsx +++ b/frontend/src/Editor/LeftSidebar/SidebarInspector.jsx @@ -117,7 +117,7 @@ export const LeftSidebarInspector = ({ const iconsList = useMemo(() => [...queryIcons, ...componentIcons], [queryIcons, componentIcons]); const handleRemoveComponent = (component) => { - removeComponent(component); + removeComponent(component.id); }; const handleSelectComponentOnEditor = (component) => {