From c0bdfeff4026987b38e5d79daa819e8a788dd3be Mon Sep 17 00:00:00 2001 From: yann300 Date: Thu, 16 Mar 2023 11:05:50 +0100 Subject: [PATCH] fix linting --- libs/remix-ui/editor/src/lib/remix-ui-editor.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/remix-ui/editor/src/lib/remix-ui-editor.tsx b/libs/remix-ui/editor/src/lib/remix-ui-editor.tsx index 2de161c5cb..b859e2aa9a 100644 --- a/libs/remix-ui/editor/src/lib/remix-ui-editor.tsx +++ b/libs/remix-ui/editor/src/lib/remix-ui-editor.tsx @@ -682,8 +682,8 @@ export const EditorUI = (props: EditorUIProps) => { contextmenu._onContextMenu = (...args) => { if (args[0]) args[0].event?.preventDefault() onContextMenuHandlerForFreeFunction() - .then(() => orgContextMenuMethod.apply(contextmenu, arguments)) - .catch(() => orgContextMenuMethod.apply(contextmenu, arguments)) + .then(() => orgContextMenuMethod.apply(contextmenu, args)) + .catch(() => orgContextMenuMethod.apply(contextmenu, args)) } const editorService = editor._codeEditorService;