mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
fix: remove unused variable
This commit is contained in:
parent
a0ac603260
commit
745e120a0b
@ -10,7 +10,6 @@ export async function uploadFiles(parentNoteId, files, options) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const taskId = utils.randomString(10);
|
const taskId = utils.randomString(10);
|
||||||
let noteId;
|
|
||||||
let counter = 0;
|
let counter = 0;
|
||||||
|
|
||||||
for (const file of files) {
|
for (const file of files) {
|
||||||
@ -25,7 +24,7 @@ export async function uploadFiles(parentNoteId, files, options) {
|
|||||||
formData.append(key, options[key]);
|
formData.append(key, options[key]);
|
||||||
}
|
}
|
||||||
|
|
||||||
({noteId} = await $.ajax({
|
await $.ajax({
|
||||||
url: `${baseApiUrl}notes/${parentNoteId}/import`,
|
url: `${baseApiUrl}notes/${parentNoteId}/import`,
|
||||||
headers: await server.getHeaders(),
|
headers: await server.getHeaders(),
|
||||||
data: formData,
|
data: formData,
|
||||||
@ -37,7 +36,7 @@ export async function uploadFiles(parentNoteId, files, options) {
|
|||||||
},
|
},
|
||||||
contentType: false, // NEEDED, DON'T REMOVE THIS
|
contentType: false, // NEEDED, DON'T REMOVE THIS
|
||||||
processData: false, // NEEDED, DON'T REMOVE THIS
|
processData: false, // NEEDED, DON'T REMOVE THIS
|
||||||
}));
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -74,4 +73,4 @@ ws.subscribeToMessages(async message => {
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
uploadFiles
|
uploadFiles
|
||||||
}
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user