mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
image import/export related fixes
This commit is contained in:
@@ -32,11 +32,11 @@ async function exportToTar(exportContext, branch, format, res) {
|
||||
do {
|
||||
index = existingFileNames[lcFileName]++;
|
||||
|
||||
newName = lcFileName + "_" + index;
|
||||
newName = index + "_" + lcFileName;
|
||||
}
|
||||
while (newName in existingFileNames);
|
||||
|
||||
return fileName + "_" + index;
|
||||
return index + "_" + fileName;
|
||||
}
|
||||
else {
|
||||
existingFileNames[lcFileName] = 1;
|
||||
|
||||
Reference in New Issue
Block a user