Skip to content

Commit

Permalink
removes useless js code
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Biasuzzi <christian.biasuzzi@soft.it>
  • Loading branch information
CBiasuzzi committed Oct 24, 2024
1 parent 91568a3 commit 057ef67
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions js/networkmapwidget.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -127,23 +127,6 @@ const render = createRender(() => {
});
}, []);

useEffect(() => {
const handleContextmenu = (e) => {
//e.preventDefault();
e.stopPropagation();
};
networkMapRef.current.addEventListener(
'contextmenu',
handleContextmenu
);
return () => {
networkMapRef.current.removeEventListener(
'contextmenu',
handleContextmenu
);
};
}, []);

useEffect(() => {
const targetSubId = params['subId'];
if (!('centered' in params)) {
Expand Down

0 comments on commit 057ef67

Please sign in to comment.