TagSpaces is an offline, open source, document manager with tagging support
fix Moving files with dnd to the root of a location
sytolk0a7ec680e378
diff --git a/src/renderer/components/LocationView.tsx b/src/renderer/components/LocationView.tsxindex be0584298..f6b9a5236 100644--- a/src/renderer/components/LocationView.tsx+++ b/src/renderer/components/LocationView.tsx@@ -152,10 +152,10 @@ function LocationView(props: Props) {showNotification(t('Moving file not possible'), 'error', true);return;}- let targetPath = item.path;const targetLocation = item.location;+ let targetPath = targetLocation ? targetLocation.path : undefined;if (targetPath === undefined) {- targetPath = targetLocation.path;+ targetPath = item.path;}if (monitor && targetPath !== undefined && targetLocation !== undefined) {