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) => {