TagSpaces is an offline, open source, document manager with tagging support
fix DnD to folder tree wrong path
Stanimirdcb481933807
diff --git a/src/renderer/components/DirectoryTreeView.tsx b/src/renderer/components/DirectoryTreeView.tsxindex ad3133f40..21f2181ee 100644--- a/src/renderer/components/DirectoryTreeView.tsx+++ b/src/renderer/components/DirectoryTreeView.tsx@@ -158,17 +158,15 @@ const DirectoryTreeView = forwardRef(const { FILE } = NativeTypes;const renderBodyRow = (propsRow: any) => {- const subFolderLocation = findLocation(location.locationID);- if (- AppConfig.isElectron ||- subFolderLocation.type !== locationType.TYPE_CLOUD- ) {+ const subFolderLocation = propsRow.location;+ const loc = findLocation(subFolderLocation.locationID);+ if (AppConfig.isElectron || loc.type !== locationType.TYPE_CLOUD) {// DnD to S3 location is not permitted in web browser without <input> elementreturn (<TargetFileBoxaccepts={[FILE]}- directoryPath={location.path}- locationId={subFolderLocation.uuid}+ directoryPath={subFolderLocation.path}+ locationId={subFolderLocation.locationID}><CustomDragLayer /><TargetTableMoveFileBox