From 8f52ad8c80cc5c06f4724653065ed1e1cac6ac7e Mon Sep 17 00:00:00 2001 From: navaneeth Date: Thu, 20 May 2021 11:29:38 +0530 Subject: [PATCH] Fix for widgets not getting removed from canvas --- frontend/src/Editor/ConfigHandle.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/Editor/ConfigHandle.jsx b/frontend/src/Editor/ConfigHandle.jsx index 59a3eada5c..b7d4cc3433 100644 --- a/frontend/src/Editor/ConfigHandle.jsx +++ b/frontend/src/Editor/ConfigHandle.jsx @@ -32,7 +32,7 @@ return
role="button" className="mx-2" height="12" - onClick={removeComponent} + onClick={() => removeComponent({id})} style={{marginRight: '5px'}} />