mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
fix import of ZIP with images with no meta file, closes #3649
This commit is contained in:
parent
46eebdc7aa
commit
540d19c67c
5
package-lock.json
generated
5
package-lock.json
generated
@ -1,12 +1,11 @@
|
|||||||
{
|
{
|
||||||
"name": "trilium",
|
"name": "trilium",
|
||||||
"version": "0.58.8",
|
"version": "0.59.1",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "trilium",
|
"version": "0.59.1",
|
||||||
"version": "0.58.8",
|
|
||||||
"hasInstallScript": true,
|
"hasInstallScript": true,
|
||||||
"license": "AGPL-3.0-only",
|
"license": "AGPL-3.0-only",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
@ -231,12 +231,6 @@ async function importZip(taskContext, fileBuffer, importRootNote) {
|
|||||||
|
|
||||||
const {noteMeta} = getMeta(absUrl);
|
const {noteMeta} = getMeta(absUrl);
|
||||||
|
|
||||||
if (!noteMeta) {
|
|
||||||
log.info(`Could not find note meta for URL '${absUrl}'.`);
|
|
||||||
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
const targetNoteId = getNoteId(noteMeta, absUrl);
|
const targetNoteId = getNoteId(noteMeta, absUrl);
|
||||||
return targetNoteId;
|
return targetNoteId;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user