From 324776911573d28b2c2e0e003c7d43aacb5481b8 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Fri, 2 Dec 2022 12:05:26 +0800 Subject: [PATCH] :lipstick: fix https://github.com/siyuan-note/siyuan/issues/6765 --- app/src/util/pathName.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/util/pathName.ts b/app/src/util/pathName.ts index b673fad36..3313ee9a4 100644 --- a/app/src/util/pathName.ts +++ b/app/src/util/pathName.ts @@ -97,7 +97,7 @@ export const movePathTo = (cb: (toPath: string[], toNotebook: string[]) => void, } const dialog = new Dialog({ title: `${title || window.siyuan.languages.move} -
`, +
`, content: `
@@ -118,7 +118,7 @@ export const movePathTo = (cb: (toPath: string[], toNotebook: string[]) => void, } } }); - if (paths.length) { + if (paths && paths.length > 0) { fetchPost("/api/filetree/getHPathsByPaths", {paths}, (response) => { dialog.element.querySelector(".b3-dialog__header .ft__smaller").innerHTML = escapeHtml(response.data.join(" ")); });