Skip to content

TagSpaces is an offline, open source, document manager with tagging support

fixing #23

Ilianefadb0701938
diff --git a/data/js/core.ui.js b/data/js/core.ui.js
index 96b824297..af254737b 100644
--- a/data/js/core.ui.js
+++ b/data/js/core.ui.js
@@ -92,7 +92,7 @@ define(function(require, exports, module) {
"Delete File(s)",
"The file \""+filePath+"\" will be permanently deleted and cannot be recovered. Are you sure?",
function() {
- TSCORE.IO.deleteElement(TSCORE.selectedFiles[0]);
+ TSCORE.IO.deleteElement(filePath);
}
);
};