From 848c08032598d897844b3165a3735d8f6d785d17 Mon Sep 17 00:00:00 2001 From: Joseph Izang Date: Mon, 29 Apr 2024 14:13:05 +0100 Subject: [PATCH] refactor --- apps/remix-ide/src/app/files/fileManager.ts | 1 + libs/remix-ui/workspace/src/lib/components/flat-tree-drop.tsx | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/apps/remix-ide/src/app/files/fileManager.ts b/apps/remix-ide/src/app/files/fileManager.ts index be40d899ab..401cce42ee 100644 --- a/apps/remix-ide/src/app/files/fileManager.ts +++ b/apps/remix-ide/src/app/files/fileManager.ts @@ -83,6 +83,7 @@ class FileManager extends Plugin { * @param {string} message message to display if path doesn't exist. */ async _handleExists(path: string, message?: string) { + console.log('_handleExists is called ', { path, message }) const exists = await this.exists(path) if (!exists) { diff --git a/libs/remix-ui/workspace/src/lib/components/flat-tree-drop.tsx b/libs/remix-ui/workspace/src/lib/components/flat-tree-drop.tsx index acbc74a075..121e790b38 100644 --- a/libs/remix-ui/workspace/src/lib/components/flat-tree-drop.tsx +++ b/libs/remix-ui/workspace/src/lib/components/flat-tree-drop.tsx @@ -84,10 +84,6 @@ export const FlatTreeDrop = (props: FlatTreeDropProps) => { await moveFilesSilently(props.selectedItems, dragDestination.path) } } - document.querySelectorAll('li.remixui_selected').forEach(item => { - item.classList.remove('remixui_selected') - item.classList.remove('bg-secondary') - }) } /**